Class AlignByDevicePlan
- java.lang.Object
-
- org.apache.iotdb.db.qp.physical.PhysicalPlan
-
- org.apache.iotdb.db.qp.physical.crud.QueryPlan
-
- org.apache.iotdb.db.qp.physical.crud.AlignByDevicePlan
-
- All Implemented Interfaces:
org.apache.iotdb.consensus.common.request.IConsensusRequest
public class AlignByDevicePlan extends QueryPlan
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
PhysicalPlan.Factory, PhysicalPlan.PhysicalPlanType
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALIAS_ERROR_MESSAGEstatic java.lang.StringDATATYPE_ERROR_MESSAGEstatic java.lang.StringMEASUREMENT_ERROR_MESSAGE-
Fields inherited from class org.apache.iotdb.db.qp.physical.crud.QueryPlan
paths, resultColumns, WITHOUT_NULL_FILTER_ERROR_MESSAGE, withoutNullColumnsIndex
-
Fields inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
canBeSplit, index
-
-
Constructor Summary
Constructors Constructor Description AlignByDevicePlan()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalcWithoutNullColumnIndex(java.util.List<Expression> withoutNullColumns)voidconvertSpecialClauseValues(SpecialClauseComponent specialClauseComponent)voiddeduplicate(PhysicalGenerator physicalGenerator)AggregationPlangetAggregationPlan()java.util.List<java.lang.String>getAggregations()java.util.List<org.apache.iotdb.commons.path.PartialPath>getDeduplicatePaths()java.util.Map<java.lang.String,org.apache.iotdb.tsfile.read.expression.IExpression>getDeviceToFilterMap()java.util.Map<java.lang.String,java.util.List<java.lang.Integer>>getDeviceToPathIndex()FillQueryPlangetFillQueryPlan()GroupByTimeFillPlangetGroupByFillPlan()GroupByTimePlangetGroupByTimePlan()java.util.Map<java.lang.String,MeasurementInfo>getMeasurementInfoMap()java.util.List<java.lang.String>getMeasurements()org.apache.iotdb.service.rpc.thrift.TSExecuteStatementRespgetTSExecuteStatementResp(boolean isJdbcQuery)Construct the header of result set.voidremoveDevice(java.lang.String device)voidsetAggregationPlan(AggregationPlan aggregationPlan)voidsetAggregations(java.util.List<java.lang.String> aggregations)voidsetDeviceToFilterMap(java.util.Map<java.lang.String,org.apache.iotdb.tsfile.read.expression.IExpression> deviceToFilterMap)voidsetDeviceToPathIndex(java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> deviceToPathIndex)voidsetFillQueryPlan(FillQueryPlan fillQueryPlan)voidsetGroupByFillPlan(GroupByTimeFillPlan groupByFillPlan)voidsetGroupByTimePlan(GroupByTimePlan groupByTimePlan)voidsetMeasurementInfoMap(java.util.Map<java.lang.String,MeasurementInfo> measurementInfoMap)voidsetMeasurements(java.util.List<java.lang.String> measurements)-
Methods inherited from class org.apache.iotdb.db.qp.physical.crud.QueryPlan
getColumnForDisplay, getColumnForReaderFromPath, getDataTypes, getPaths, getPathToIndex, getResultColumns, getRowLimit, getRowOffset, getWideQueryHeaders, getWithoutNullColumnsIndex, hasLimit, isAlignByTime, isAscending, isEnableRedirect, isEnableTracing, isGroupByLevel, isWithoutAllNull, isWithoutAnyNull, setAlignByTime, setAscending, setColumnNameToDatasetOutputIndex, setEnableRedirect, setEnableTracing, setPaths, setResultColumns, setRowLimit, setRowOffset, setWithoutAllNull, setWithoutAnyNull
-
Methods inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
canBeSplit, checkIntegrity, deserialize, deserialize, getAuthPaths, getIndex, getLoginUserName, getOperatorName, getOperatorType, isAuthenticationRequired, isDebug, isPrefixMatch, isQuery, isSelectInto, putString, putString, putStrings, putStrings, readString, readStrings, serialize, serialize, serializeImpl, serializeToByteBuffer, setDebug, setIndex, setLoginUserName, setOperatorType, setPrefixMatch, setQuery
-
-
-
-
Field Detail
-
MEASUREMENT_ERROR_MESSAGE
public static final java.lang.String MEASUREMENT_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
ALIAS_ERROR_MESSAGE
public static final java.lang.String ALIAS_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
DATATYPE_ERROR_MESSAGE
public static final java.lang.String DATATYPE_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
calcWithoutNullColumnIndex
public void calcWithoutNullColumnIndex(java.util.List<Expression> withoutNullColumns) throws QueryProcessException
- Throws:
QueryProcessException
-
deduplicate
public void deduplicate(PhysicalGenerator physicalGenerator)
- Specified by:
deduplicatein classQueryPlan
-
convertSpecialClauseValues
public void convertSpecialClauseValues(SpecialClauseComponent specialClauseComponent) throws QueryProcessException
- Specified by:
convertSpecialClauseValuesin classQueryPlan- Throws:
QueryProcessException
-
getDeduplicatePaths
public java.util.List<org.apache.iotdb.commons.path.PartialPath> getDeduplicatePaths()
-
removeDevice
public void removeDevice(java.lang.String device)
-
setMeasurementInfoMap
public void setMeasurementInfoMap(java.util.Map<java.lang.String,MeasurementInfo> measurementInfoMap)
-
getMeasurementInfoMap
public java.util.Map<java.lang.String,MeasurementInfo> getMeasurementInfoMap()
-
getTSExecuteStatementResp
public org.apache.iotdb.service.rpc.thrift.TSExecuteStatementResp getTSExecuteStatementResp(boolean isJdbcQuery)
Description copied from class:QueryPlanConstruct the header of result set. Return TSExecuteStatementResp.- Overrides:
getTSExecuteStatementRespin classQueryPlan
-
setMeasurements
public void setMeasurements(java.util.List<java.lang.String> measurements)
-
getMeasurements
public java.util.List<java.lang.String> getMeasurements()
-
getAggregations
public java.util.List<java.lang.String> getAggregations()
- Overrides:
getAggregationsin classPhysicalPlan
-
setAggregations
public void setAggregations(java.util.List<java.lang.String> aggregations)
-
getDeviceToPathIndex
public java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> getDeviceToPathIndex()
-
setDeviceToPathIndex
public void setDeviceToPathIndex(java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> deviceToPathIndex)
-
getDeviceToFilterMap
public java.util.Map<java.lang.String,org.apache.iotdb.tsfile.read.expression.IExpression> getDeviceToFilterMap()
-
setDeviceToFilterMap
public void setDeviceToFilterMap(java.util.Map<java.lang.String,org.apache.iotdb.tsfile.read.expression.IExpression> deviceToFilterMap)
-
getGroupByTimePlan
public GroupByTimePlan getGroupByTimePlan()
-
setGroupByTimePlan
public void setGroupByTimePlan(GroupByTimePlan groupByTimePlan)
-
getGroupByFillPlan
public GroupByTimeFillPlan getGroupByFillPlan()
-
setGroupByFillPlan
public void setGroupByFillPlan(GroupByTimeFillPlan groupByFillPlan)
-
getFillQueryPlan
public FillQueryPlan getFillQueryPlan()
-
setFillQueryPlan
public void setFillQueryPlan(FillQueryPlan fillQueryPlan)
-
getAggregationPlan
public AggregationPlan getAggregationPlan()
-
setAggregationPlan
public void setAggregationPlan(AggregationPlan aggregationPlan)
-
-