Class ConstantOperand
- java.lang.Object
-
- org.apache.iotdb.db.mpp.plan.expression.Expression
-
- org.apache.iotdb.db.mpp.plan.expression.leaf.LeafOperand
-
- org.apache.iotdb.db.mpp.plan.expression.leaf.ConstantOperand
-
public class ConstantOperand extends LeafOperand
Constant operand
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.mpp.plan.expression.Expression
inputColumnIndex, isConstantOperandCache
-
-
Constructor Summary
Constructors Constructor Description ConstantOperand(java.nio.ByteBuffer byteBuffer)ConstantOperand(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType, java.lang.String valueString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(ExpressionVisitor<R,C> visitor, C context)Accessible forExpressionVisitor, useExpressionVisitor.process(org.apache.iotdb.db.mpp.plan.expression.Expression, C)instead.voidbindInputLayerColumnIndexWithExpression(java.util.Map<java.lang.String,java.util.List<InputLocation>> inputLocations)voidbindInputLayerColumnIndexWithExpression(UDTFPlan udtfPlan)voidcollectPaths(java.util.Set<org.apache.iotdb.commons.path.PartialPath> pathSet)voidconcat(java.util.List<org.apache.iotdb.commons.path.PartialPath> prefixPaths, java.util.List<Expression> resultExpressions)org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypegetDataType()java.lang.StringgetExpressionStringInternal()Sub-classes should override this method to provide valid string representation of this object.ExpressionTypegetExpressionType()java.lang.StringgetValueString()org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypeinferTypes(TypeProvider typeProvider)booleanisConstantOperandInternal()Sub-classes should override this method indicating if the expression is a constant operandbooleanisNegativeNumber()voidremoveWildcards(WildcardsRemover wildcardsRemover, java.util.List<Expression> resultExpressions)protected voidserialize(java.io.DataOutputStream stream)protected voidserialize(java.nio.ByteBuffer byteBuffer)voidupdateStatisticsForMemoryAssigner(LayerMemoryAssigner memoryAssigner)-
Methods inherited from class org.apache.iotdb.db.mpp.plan.expression.leaf.LeafOperand
constructUdfExecutors, getExpressions, isMappable
-
Methods inherited from class org.apache.iotdb.db.mpp.plan.expression.Expression
checkInputExpressionDataType, deserialize, equals, getExpressionString, getInputColumnIndex, hashCode, isBuiltInAggregationFunctionExpression, isCompareBinaryExpression, isConstantOperand, isTimeSeriesGeneratingFunctionExpression, isUserDefinedAggregationFunctionExpression, iterator, serialize, serialize, toString
-
-
-
-
Method Detail
-
accept
public <R,C> R accept(ExpressionVisitor<R,C> visitor, C context)
Description copied from class:ExpressionAccessible forExpressionVisitor, useExpressionVisitor.process(org.apache.iotdb.db.mpp.plan.expression.Expression, C)instead.- Overrides:
acceptin classExpression
-
getDataType
public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getDataType()
-
getValueString
public java.lang.String getValueString()
-
isNegativeNumber
public boolean isNegativeNumber()
-
isConstantOperandInternal
public boolean isConstantOperandInternal()
Description copied from class:ExpressionSub-classes should override this method indicating if the expression is a constant operand- Specified by:
isConstantOperandInternalin classExpression
-
concat
public void concat(java.util.List<org.apache.iotdb.commons.path.PartialPath> prefixPaths, java.util.List<Expression> resultExpressions)- Specified by:
concatin classExpression
-
removeWildcards
public void removeWildcards(WildcardsRemover wildcardsRemover, java.util.List<Expression> resultExpressions)
- Specified by:
removeWildcardsin classExpression
-
collectPaths
public void collectPaths(java.util.Set<org.apache.iotdb.commons.path.PartialPath> pathSet)
- Specified by:
collectPathsin classExpression
-
inferTypes
public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType inferTypes(TypeProvider typeProvider)
- Specified by:
inferTypesin classExpression
-
bindInputLayerColumnIndexWithExpression
public void bindInputLayerColumnIndexWithExpression(UDTFPlan udtfPlan)
- Specified by:
bindInputLayerColumnIndexWithExpressionin classExpression
-
bindInputLayerColumnIndexWithExpression
public void bindInputLayerColumnIndexWithExpression(java.util.Map<java.lang.String,java.util.List<InputLocation>> inputLocations)
- Specified by:
bindInputLayerColumnIndexWithExpressionin classExpression
-
updateStatisticsForMemoryAssigner
public void updateStatisticsForMemoryAssigner(LayerMemoryAssigner memoryAssigner)
- Specified by:
updateStatisticsForMemoryAssignerin classExpression
-
getExpressionStringInternal
public java.lang.String getExpressionStringInternal()
Description copied from class:ExpressionSub-classes should override this method to provide valid string representation of this object. SeeExpression.getExpressionString()- Specified by:
getExpressionStringInternalin classExpression
-
getExpressionType
public ExpressionType getExpressionType()
- Specified by:
getExpressionTypein classExpression
-
serialize
protected void serialize(java.nio.ByteBuffer byteBuffer)
- Specified by:
serializein classExpression
-
serialize
protected void serialize(java.io.DataOutputStream stream) throws java.io.IOException- Specified by:
serializein classExpression- Throws:
java.io.IOException
-
-