Class CreateMultiTimeSeriesPlan
- java.lang.Object
-
- org.apache.iotdb.db.qp.physical.PhysicalPlan
-
- org.apache.iotdb.db.qp.physical.sys.CreateMultiTimeSeriesPlan
-
- All Implemented Interfaces:
org.apache.iotdb.consensus.common.request.IConsensusRequest,BatchPlan
public class CreateMultiTimeSeriesPlan extends PhysicalPlan implements BatchPlan
create multiple timeSeries, could be split to several sub Plans to execute in different DataGroup
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
PhysicalPlan.Factory, PhysicalPlan.PhysicalPlanType
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
canBeSplit, index
-
-
Constructor Summary
Constructors Constructor Description CreateMultiTimeSeriesPlan()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIntegrity()Check the integrity of the plan in case that the plan is generated by a careless user through Session API.voiddeserialize(java.nio.ByteBuffer buffer)Deserialize the plan from the given buffer.booleanequals(java.lang.Object o)java.util.List<java.lang.String>getAlias()java.util.List<java.util.Map<java.lang.String,java.lang.String>>getAttributes()intgetBatchSize()Return how many sub-plans are in the planjava.util.List<org.apache.iotdb.tsfile.file.metadata.enums.CompressionType>getCompressors()java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType>getDataTypes()java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding>getEncodings()org.apache.iotdb.common.rpc.thrift.TSStatus[]getFailingStatus()java.util.List<java.lang.Integer>getIndexes()java.util.List<org.apache.iotdb.commons.path.PartialPath>getPaths()java.util.List<org.apache.iotdb.commons.path.PartialPath>getPrefixPaths()Return prefix paths of all sub-plansjava.util.List<java.util.Map<java.lang.String,java.lang.String>>getProps()java.util.Map<java.lang.Integer,org.apache.iotdb.common.rpc.thrift.TSStatus>getResults()Return execution status for each pathjava.util.List<java.util.Map<java.lang.String,java.lang.String>>getTags()inthashCode()booleanisExecuted(int i)Whether the sub-plan at position i has been executed.voidserialize(java.io.DataOutputStream stream)Serialize the plan into the given buffer.voidserializeImpl(java.nio.ByteBuffer buffer)voidsetAlias(java.util.List<java.lang.String> alias)voidsetAttributes(java.util.List<java.util.Map<java.lang.String,java.lang.String>> attributes)voidsetCompressors(java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.CompressionType> compressors)voidsetDataTypes(java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> dataTypes)voidsetEncodings(java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding> encodings)voidsetIndexes(java.util.List<java.lang.Integer> indexes)voidsetIsExecuted(int i)Mark the sub-plan at position i as executed.voidsetPaths(java.util.List<org.apache.iotdb.commons.path.PartialPath> paths)voidsetProps(java.util.List<java.util.Map<java.lang.String,java.lang.String>> props)voidsetResults(java.util.Map<java.lang.Integer,org.apache.iotdb.common.rpc.thrift.TSStatus> results)voidsetTags(java.util.List<java.util.Map<java.lang.String,java.lang.String>> tags)voidunsetIsExecuted(int i)Mark the sub-plan at position i as not executed.-
Methods inherited from class org.apache.iotdb.db.qp.physical.PhysicalPlan
canBeSplit, deserialize, getAggregations, getAuthPaths, getIndex, getLoginUserName, getOperatorName, getOperatorType, isAuthenticationRequired, isDebug, isPrefixMatch, isQuery, isSelectInto, putString, putString, putStrings, putStrings, readString, readStrings, serialize, serializeToByteBuffer, setDebug, setIndex, setLoginUserName, setOperatorType, setPrefixMatch, setQuery
-
-
-
-
Method Detail
-
getPaths
public java.util.List<org.apache.iotdb.commons.path.PartialPath> getPaths()
- Specified by:
getPathsin classPhysicalPlan
-
setPaths
public void setPaths(java.util.List<org.apache.iotdb.commons.path.PartialPath> paths)
- Overrides:
setPathsin classPhysicalPlan
-
getDataTypes
public java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> getDataTypes()
-
setDataTypes
public void setDataTypes(java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> dataTypes)
-
getEncodings
public java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding> getEncodings()
-
setEncodings
public void setEncodings(java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding> encodings)
-
getCompressors
public java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.CompressionType> getCompressors()
-
setCompressors
public void setCompressors(java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.CompressionType> compressors)
-
getAlias
public java.util.List<java.lang.String> getAlias()
-
setAlias
public void setAlias(java.util.List<java.lang.String> alias)
-
getProps
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getProps()
-
setProps
public void setProps(java.util.List<java.util.Map<java.lang.String,java.lang.String>> props)
-
getTags
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getTags()
-
setTags
public void setTags(java.util.List<java.util.Map<java.lang.String,java.lang.String>> tags)
-
getAttributes
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getAttributes()
-
setAttributes
public void setAttributes(java.util.List<java.util.Map<java.lang.String,java.lang.String>> attributes)
-
getIndexes
public java.util.List<java.lang.Integer> getIndexes()
-
setIndexes
public void setIndexes(java.util.List<java.lang.Integer> indexes)
-
getResults
public java.util.Map<java.lang.Integer,org.apache.iotdb.common.rpc.thrift.TSStatus> getResults()
Description copied from interface:BatchPlanReturn execution status for each path- Specified by:
getResultsin interfaceBatchPlan- Returns:
- execution status for each path
-
getPrefixPaths
public java.util.List<org.apache.iotdb.commons.path.PartialPath> getPrefixPaths()
Description copied from interface:BatchPlanReturn prefix paths of all sub-plans- Specified by:
getPrefixPathsin interfaceBatchPlan- Returns:
- prefix paths of all sub-plans
-
getFailingStatus
public org.apache.iotdb.common.rpc.thrift.TSStatus[] getFailingStatus()
-
setResults
public void setResults(java.util.Map<java.lang.Integer,org.apache.iotdb.common.rpc.thrift.TSStatus> results)
-
serialize
public void serialize(java.io.DataOutputStream stream) throws java.io.IOExceptionDescription copied from class:PhysicalPlanSerialize the plan into the given buffer. All necessary fields will be serialized.- Overrides:
serializein classPhysicalPlan- Throws:
java.io.IOException
-
serializeImpl
public void serializeImpl(java.nio.ByteBuffer buffer)
- Overrides:
serializeImplin classPhysicalPlan
-
deserialize
public void deserialize(java.nio.ByteBuffer buffer) throws org.apache.iotdb.commons.exception.IllegalPathExceptionDescription copied from class:PhysicalPlanDeserialize the plan from the given buffer.- Overrides:
deserializein classPhysicalPlan- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
checkIntegrity
public void checkIntegrity() throws QueryProcessExceptionDescription copied from class:PhysicalPlanCheck the integrity of the plan in case that the plan is generated by a careless user through Session API.- Overrides:
checkIntegrityin classPhysicalPlan- Throws:
QueryProcessException- when the check fails
-
setIsExecuted
public void setIsExecuted(int i)
Description copied from interface:BatchPlanMark the sub-plan at position i as executed.- Specified by:
setIsExecutedin interfaceBatchPlan- Parameters:
i- the position of the sub-plan
-
isExecuted
public boolean isExecuted(int i)
Description copied from interface:BatchPlanWhether the sub-plan at position i has been executed.- Specified by:
isExecutedin interfaceBatchPlan- Parameters:
i- the position of the sub-plan- Returns:
- whether the sub-plan at position i has been executed.
-
getBatchSize
public int getBatchSize()
Description copied from interface:BatchPlanReturn how many sub-plans are in the plan- Specified by:
getBatchSizein interfaceBatchPlan- Returns:
- how many sub-plans are in the plan.
-
unsetIsExecuted
public void unsetIsExecuted(int i)
Description copied from interface:BatchPlanMark the sub-plan at position i as not executed.- Specified by:
unsetIsExecutedin interfaceBatchPlan- Parameters:
i- the position of the sub-plan
-
-