Class QueryOperator
- java.lang.Object
-
- org.apache.iotdb.db.qp.logical.Operator
-
- org.apache.iotdb.db.qp.logical.crud.QueryOperator
-
- Direct Known Subclasses:
AggregationQueryOperator,FillQueryOperator,InfluxQueryOperator,LastQueryOperator,UDAFQueryOperator,UDTFQueryOperator
public class QueryOperator extends Operator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.db.qp.logical.Operator
Operator.OperatorType
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanenableTracingprotected FromComponentfromComponentprotected IndexTypeindexTypeprotected java.util.Map<java.lang.String,java.lang.Object>propsprotected SelectComponentselectComponentprotected SpecialClauseComponentspecialClauseComponentprotected WhereComponentwhereComponent-
Fields inherited from class org.apache.iotdb.db.qp.logical.Operator
isDebug, isPrefixMatchPath, operatorType, tokenIntType
-
-
Constructor Summary
Constructors Constructor Description QueryOperator()QueryOperator(QueryOperator queryOperator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck()protected AlignByDevicePlangenerateAlignByDevicePlan(PhysicalGenerator generator)PhysicalPlangeneratePhysicalPlan(PhysicalGenerator generator)protected QueryPlangenerateRawDataQueryPlan(PhysicalGenerator generator, QueryPlan queryPlan)java.util.Set<java.lang.String>getAliasSet()FromComponentgetFromComponent()IndexTypegetIndexType()int[]getLevels()protected java.util.Set<org.apache.iotdb.commons.path.PartialPath>getMatchedDevices(org.apache.iotdb.commons.path.PartialPath path)protected java.util.List<MeasurementPath>getMatchedTimeseries(org.apache.iotdb.commons.path.PartialPath path)java.util.Map<java.lang.String,java.lang.Object>getProps()SelectComponentgetSelectComponent()SpecialClauseComponentgetSpecialClauseComponent()WhereComponentgetWhereComponent()booleanhasAggregationFunction()booleanhasSlimit()booleanhasSoffset()booleanhasTimeSeriesGeneratingFunction()booleanisAlignByDevice()booleanisAlignByTime()booleanisEnableTracing()booleanisGroupByLevel()protected org.apache.iotdb.tsfile.read.expression.IExpressionoptimizeExpression(org.apache.iotdb.tsfile.read.expression.IExpression expression, RawDataQueryPlan queryPlan)voidresetSLimitOffset()Reset sLimit and sOffset to zero.voidsetAliasSet(java.util.Set<java.lang.String> aliasSet)voidsetEnableTracing(boolean enableTracing)voidsetFromComponent(FromComponent fromComponent)voidsetIndexType(IndexType indexType)voidsetProps(java.util.Map<java.lang.String,java.lang.Object> props)voidsetSelectComponent(SelectComponent selectComponent)voidsetSpecialClauseComponent(SpecialClauseComponent specialClauseComponent)voidsetWhereComponent(WhereComponent whereComponent)protected org.apache.iotdb.tsfile.read.expression.IExpressiontransformFilterOperatorToExpression()-
Methods inherited from class org.apache.iotdb.db.qp.logical.Operator
getTokenIntType, getType, isDebug, isPrefixMatchPath, isQuery, setDebug, setOperatorType, setPrefixMatchPath, toString
-
-
-
-
Field Detail
-
selectComponent
protected SelectComponent selectComponent
-
fromComponent
protected FromComponent fromComponent
-
whereComponent
protected WhereComponent whereComponent
-
specialClauseComponent
protected SpecialClauseComponent specialClauseComponent
-
props
protected java.util.Map<java.lang.String,java.lang.Object> props
-
indexType
protected IndexType indexType
-
enableTracing
protected boolean enableTracing
-
-
Constructor Detail
-
QueryOperator
public QueryOperator()
-
QueryOperator
public QueryOperator(QueryOperator queryOperator)
-
-
Method Detail
-
setAliasSet
public void setAliasSet(java.util.Set<java.lang.String> aliasSet)
-
getAliasSet
public java.util.Set<java.lang.String> getAliasSet()
-
getSelectComponent
public SelectComponent getSelectComponent()
-
setSelectComponent
public void setSelectComponent(SelectComponent selectComponent)
-
getFromComponent
public FromComponent getFromComponent()
-
setFromComponent
public void setFromComponent(FromComponent fromComponent)
-
getWhereComponent
public WhereComponent getWhereComponent()
-
setWhereComponent
public void setWhereComponent(WhereComponent whereComponent)
-
setSpecialClauseComponent
public void setSpecialClauseComponent(SpecialClauseComponent specialClauseComponent)
-
getSpecialClauseComponent
public SpecialClauseComponent getSpecialClauseComponent()
-
getProps
public java.util.Map<java.lang.String,java.lang.Object> getProps()
-
setProps
public void setProps(java.util.Map<java.lang.String,java.lang.Object> props)
-
getIndexType
public IndexType getIndexType()
-
setIndexType
public void setIndexType(IndexType indexType)
-
hasAggregationFunction
public boolean hasAggregationFunction()
-
hasTimeSeriesGeneratingFunction
public boolean hasTimeSeriesGeneratingFunction()
-
isAlignByDevice
public boolean isAlignByDevice()
-
isAlignByTime
public boolean isAlignByTime()
-
isGroupByLevel
public boolean isGroupByLevel()
-
getLevels
public int[] getLevels()
-
hasSlimit
public boolean hasSlimit()
-
hasSoffset
public boolean hasSoffset()
-
resetSLimitOffset
public void resetSLimitOffset()
Reset sLimit and sOffset to zero.
-
check
public void check() throws LogicalOperatorException- Throws:
LogicalOperatorException
-
generatePhysicalPlan
public PhysicalPlan generatePhysicalPlan(PhysicalGenerator generator) throws QueryProcessException
- Overrides:
generatePhysicalPlanin classOperator- Throws:
QueryProcessException
-
generateRawDataQueryPlan
protected QueryPlan generateRawDataQueryPlan(PhysicalGenerator generator, QueryPlan queryPlan) throws QueryProcessException
- Throws:
QueryProcessException
-
transformFilterOperatorToExpression
protected org.apache.iotdb.tsfile.read.expression.IExpression transformFilterOperatorToExpression() throws QueryProcessException- Throws:
QueryProcessException
-
optimizeExpression
protected org.apache.iotdb.tsfile.read.expression.IExpression optimizeExpression(org.apache.iotdb.tsfile.read.expression.IExpression expression, RawDataQueryPlan queryPlan) throws QueryProcessException- Throws:
QueryProcessException
-
generateAlignByDevicePlan
protected AlignByDevicePlan generateAlignByDevicePlan(PhysicalGenerator generator) throws QueryProcessException
- Throws:
QueryProcessException
-
getMatchedDevices
protected java.util.Set<org.apache.iotdb.commons.path.PartialPath> getMatchedDevices(org.apache.iotdb.commons.path.PartialPath path) throws org.apache.iotdb.commons.exception.MetadataException- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
getMatchedTimeseries
protected java.util.List<MeasurementPath> getMatchedTimeseries(org.apache.iotdb.commons.path.PartialPath path) throws org.apache.iotdb.commons.exception.MetadataException
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
isEnableTracing
public boolean isEnableTracing()
-
setEnableTracing
public void setEnableTracing(boolean enableTracing)
-
-