Class GroupByTimePlan
- 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.RawDataQueryPlan
-
- org.apache.iotdb.db.qp.physical.crud.AggregationPlan
-
- org.apache.iotdb.db.qp.physical.crud.GroupByTimePlan
-
- All Implemented Interfaces:
org.apache.iotdb.consensus.common.request.IConsensusRequest
- Direct Known Subclasses:
GroupByTimeFillPlan
public class GroupByTimePlan extends AggregationPlan
-
-
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 protected longendTimeprotected longintervalprotected booleanisIntervalByMonthprotected booleanisSlidingStepByMonthprotected booleanleftCRightOprotected longslidingStepprotected longstartTime-
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 GroupByTimePlan()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetEndTime()longgetInterval()longgetSlidingStep()longgetStartTime()static org.apache.iotdb.tsfile.read.expression.impl.GlobalTimeExpressiongetTimeExpression(GroupByTimePlan plan)org.apache.iotdb.service.rpc.thrift.TSExecuteStatementRespgetTSExecuteStatementResp(boolean isJdbcQuery)Construct the header of result set.booleanisIntervalByMonth()booleanisLeftCRightO()booleanisSlidingStepByMonth()voidsetEndTime(long endTime)voidsetInterval(long interval)voidsetIntervalByMonth(boolean isIntervalByMonth)voidsetLeftCRightO(boolean leftCRightO)voidsetSlidingStep(long slidingStep)voidsetSlidingStepByMonth(boolean isSlidingStepByMonth)voidsetStartTime(long startTime)-
Methods inherited from class org.apache.iotdb.db.qp.physical.crud.AggregationPlan
addDeduplicatedAggregations, getAggregations, getColumnForDisplay, getColumnForReaderFromPath, getDeduplicatedAggregations, getGroupByLevelController, getGroupPathsResultMap, getLevels, getWideQueryHeaders, groupAggResultByLevel, isGroupByLevel, setAggregations, setDeduplicatedAggregations, setGroupByLevelController, setLevels, verifyAllAggregationDataTypesMatched
-
Methods inherited from class org.apache.iotdb.db.qp.physical.crud.RawDataQueryPlan
addDeduplicatedPaths, addFilterPathInDeviceToMeasurements, convertSpecialClauseValues, deduplicate, getAllMeasurementsInDevice, getDeduplicatedDataTypes, getDeduplicatedPaths, getDeviceToMeasurements, getExpression, groupVectorPaths, setDeduplicatedPaths, setDeduplicatedPathsAndUpdate, setDeduplicatedVectorPaths, setExpression, transformToVector, updateDeviceMeasurementsUsingExpression
-
Methods inherited from class org.apache.iotdb.db.qp.physical.crud.QueryPlan
getDataTypes, getPaths, getPathToIndex, getResultColumns, getRowLimit, getRowOffset, getWithoutNullColumnsIndex, hasLimit, isAlignByTime, isAscending, isEnableRedirect, isEnableTracing, 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
-
startTime
protected long startTime
-
endTime
protected long endTime
-
interval
protected long interval
-
slidingStep
protected long slidingStep
-
isIntervalByMonth
protected boolean isIntervalByMonth
-
isSlidingStepByMonth
protected boolean isSlidingStepByMonth
-
leftCRightO
protected boolean leftCRightO
-
-
Method Detail
-
getTSExecuteStatementResp
public org.apache.iotdb.service.rpc.thrift.TSExecuteStatementResp getTSExecuteStatementResp(boolean isJdbcQuery) throws org.apache.thrift.TException, org.apache.iotdb.commons.exception.MetadataExceptionDescription copied from class:QueryPlanConstruct the header of result set. Return TSExecuteStatementResp.- Overrides:
getTSExecuteStatementRespin classAggregationPlan- Throws:
org.apache.thrift.TExceptionorg.apache.iotdb.commons.exception.MetadataException
-
getStartTime
public long getStartTime()
-
setStartTime
public void setStartTime(long startTime)
-
getEndTime
public long getEndTime()
-
setEndTime
public void setEndTime(long endTime)
-
getInterval
public long getInterval()
-
setInterval
public void setInterval(long interval)
-
isSlidingStepByMonth
public boolean isSlidingStepByMonth()
-
setSlidingStepByMonth
public void setSlidingStepByMonth(boolean isSlidingStepByMonth)
-
isIntervalByMonth
public boolean isIntervalByMonth()
-
setIntervalByMonth
public void setIntervalByMonth(boolean isIntervalByMonth)
-
getSlidingStep
public long getSlidingStep()
-
setSlidingStep
public void setSlidingStep(long slidingStep)
-
isLeftCRightO
public boolean isLeftCRightO()
-
setLeftCRightO
public void setLeftCRightO(boolean leftCRightO)
-
getTimeExpression
public static org.apache.iotdb.tsfile.read.expression.impl.GlobalTimeExpression getTimeExpression(GroupByTimePlan plan) throws QueryProcessException
- Throws:
QueryProcessException
-
-