Class UDAFQueryOperator
- java.lang.Object
-
- org.apache.iotdb.db.qp.logical.Operator
-
- org.apache.iotdb.db.qp.logical.crud.QueryOperator
-
- org.apache.iotdb.db.qp.logical.crud.UDAFQueryOperator
-
public class UDAFQueryOperator extends QueryOperator
For a UDAFPlan, we construct an inner AggregationPlan for it. Example: select count(a)/count(b),count(a)+sum(b) from root.sg To init inner AggregationPlan, we will convert it to statement: select count(a),count(b),count(a),sum(b) from root.sg innerResultColumnsCache will be [count(a),count(b),sum(b)]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.db.qp.logical.Operator
Operator.OperatorType
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.qp.logical.crud.QueryOperator
enableTracing, fromComponent, indexType, props, selectComponent, specialClauseComponent, whereComponent
-
Fields inherited from class org.apache.iotdb.db.qp.logical.Operator
isDebug, isPrefixMatchPath, operatorType, tokenIntType
-
-
Constructor Summary
Constructors Constructor Description UDAFQueryOperator(AggregationQueryOperator queryOperator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck()PhysicalPlangeneratePhysicalPlan(PhysicalGenerator generator)java.util.List<ResultColumn>getInnerResultColumnsCache()-
Methods inherited from class org.apache.iotdb.db.qp.logical.crud.QueryOperator
generateAlignByDevicePlan, generateRawDataQueryPlan, getAliasSet, getFromComponent, getIndexType, getLevels, getMatchedDevices, getMatchedTimeseries, getProps, getSelectComponent, getSpecialClauseComponent, getWhereComponent, hasAggregationFunction, hasSlimit, hasSoffset, hasTimeSeriesGeneratingFunction, isAlignByDevice, isAlignByTime, isEnableTracing, isGroupByLevel, optimizeExpression, resetSLimitOffset, setAliasSet, setEnableTracing, setFromComponent, setIndexType, setProps, setSelectComponent, setSpecialClauseComponent, setWhereComponent, transformFilterOperatorToExpression
-
Methods inherited from class org.apache.iotdb.db.qp.logical.Operator
getTokenIntType, getType, isDebug, isPrefixMatchPath, isQuery, setDebug, setOperatorType, setPrefixMatchPath, toString
-
-
-
-
Constructor Detail
-
UDAFQueryOperator
public UDAFQueryOperator(AggregationQueryOperator queryOperator)
-
-
Method Detail
-
check
public void check() throws LogicalOperatorException- Overrides:
checkin classQueryOperator- Throws:
LogicalOperatorException
-
getInnerResultColumnsCache
public java.util.List<ResultColumn> getInnerResultColumnsCache()
-
generatePhysicalPlan
public PhysicalPlan generatePhysicalPlan(PhysicalGenerator generator) throws QueryProcessException
- Overrides:
generatePhysicalPlanin classQueryOperator- Throws:
QueryProcessException
-
-