Class UnaryExpression
- java.lang.Object
-
- org.apache.iotdb.db.mpp.plan.expression.Expression
-
- org.apache.iotdb.db.mpp.plan.expression.unary.UnaryExpression
-
- Direct Known Subclasses:
InExpression,IsNullExpression,LikeExpression,LogicNotExpression,NegationExpression,RegularExpression
public abstract class UnaryExpression extends Expression
-
-
Field Summary
Fields Modifier and Type Field Description protected Expressionexpression-
Fields inherited from class org.apache.iotdb.db.mpp.plan.expression.Expression
inputColumnIndex, isConstantOperandCache
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUnaryExpression(Expression expression)
-
Method Summary
All Methods Instance Methods Abstract 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)protected abstract ExpressionconstructExpression(Expression childExpression)voidconstructUdfExecutors(java.util.Map<java.lang.String,UDTFExecutor> expressionName2Executor, java.time.ZoneId zoneId)ExpressiongetExpression()java.util.List<Expression>getExpressions()returns the DIRECT children expressions if it has any, otherwise an EMPTY list will be returnedbooleanisConstantOperandInternal()Sub-classes should override this method indicating if the expression is a constant operandbooleanisMappable(TypeProvider typeProvider)booleanisTimeSeriesGeneratingFunctionExpression()booleanisUserDefinedAggregationFunctionExpression()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.Expression
checkInputExpressionDataType, deserialize, equals, getExpressionString, getExpressionStringInternal, getExpressionType, getInputColumnIndex, hashCode, inferTypes, isBuiltInAggregationFunctionExpression, isCompareBinaryExpression, isConstantOperand, iterator, serialize, serialize, toString
-
-
-
-
Field Detail
-
expression
protected final Expression expression
-
-
Constructor Detail
-
UnaryExpression
protected UnaryExpression(Expression expression)
-
-
Method Detail
-
getExpression
public final Expression getExpression()
-
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
-
isConstantOperandInternal
public final boolean isConstantOperandInternal()
Description copied from class:ExpressionSub-classes should override this method indicating if the expression is a constant operand- Specified by:
isConstantOperandInternalin classExpression
-
getExpressions
public final java.util.List<Expression> getExpressions()
Description copied from class:Expressionreturns the DIRECT children expressions if it has any, otherwise an EMPTY list will be returned- Specified by:
getExpressionsin classExpression
-
isTimeSeriesGeneratingFunctionExpression
public final boolean isTimeSeriesGeneratingFunctionExpression()
- Overrides:
isTimeSeriesGeneratingFunctionExpressionin classExpression
-
isUserDefinedAggregationFunctionExpression
public final boolean isUserDefinedAggregationFunctionExpression()
- Overrides:
isUserDefinedAggregationFunctionExpressionin classExpression
-
collectPaths
public final void collectPaths(java.util.Set<org.apache.iotdb.commons.path.PartialPath> pathSet)
- Specified by:
collectPathsin classExpression
-
constructUdfExecutors
public final void constructUdfExecutors(java.util.Map<java.lang.String,UDTFExecutor> expressionName2Executor, java.time.ZoneId zoneId)
- Specified by:
constructUdfExecutorsin classExpression
-
bindInputLayerColumnIndexWithExpression
public final void bindInputLayerColumnIndexWithExpression(UDTFPlan udtfPlan)
- Specified by:
bindInputLayerColumnIndexWithExpressionin classExpression
-
bindInputLayerColumnIndexWithExpression
public final void bindInputLayerColumnIndexWithExpression(java.util.Map<java.lang.String,java.util.List<InputLocation>> inputLocations)
- Specified by:
bindInputLayerColumnIndexWithExpressionin classExpression
-
updateStatisticsForMemoryAssigner
public final void updateStatisticsForMemoryAssigner(LayerMemoryAssigner memoryAssigner)
- Specified by:
updateStatisticsForMemoryAssignerin classExpression
-
isMappable
public boolean isMappable(TypeProvider typeProvider)
- Specified by:
isMappablein classExpression
-
concat
public final void concat(java.util.List<org.apache.iotdb.commons.path.PartialPath> prefixPaths, java.util.List<Expression> resultExpressions)- Specified by:
concatin classExpression
-
removeWildcards
public final void removeWildcards(WildcardsRemover wildcardsRemover, java.util.List<Expression> resultExpressions) throws LogicalOptimizeException
- Specified by:
removeWildcardsin classExpression- Throws:
LogicalOptimizeException
-
constructExpression
protected abstract Expression constructExpression(Expression childExpression)
-
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
-
-