Class 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
    • Constructor Detail

      • CreateMultiTimeSeriesPlan

        public CreateMultiTimeSeriesPlan()
    • Method Detail

      • getPaths

        public java.util.List<org.apache.iotdb.commons.path.PartialPath> getPaths()
        Specified by:
        getPaths in class PhysicalPlan
      • setPaths

        public void setPaths​(java.util.List<org.apache.iotdb.commons.path.PartialPath> paths)
        Overrides:
        setPaths in class PhysicalPlan
      • 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: BatchPlan
        Return execution status for each path
        Specified by:
        getResults in interface BatchPlan
        Returns:
        execution status for each path
      • getPrefixPaths

        public java.util.List<org.apache.iotdb.commons.path.PartialPath> getPrefixPaths()
        Description copied from interface: BatchPlan
        Return prefix paths of all sub-plans
        Specified by:
        getPrefixPaths in interface BatchPlan
        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.IOException
        Description copied from class: PhysicalPlan
        Serialize the plan into the given buffer. All necessary fields will be serialized.
        Overrides:
        serialize in class PhysicalPlan
        Throws:
        java.io.IOException
      • deserialize

        public void deserialize​(java.nio.ByteBuffer buffer)
                         throws org.apache.iotdb.commons.exception.IllegalPathException
        Description copied from class: PhysicalPlan
        Deserialize the plan from the given buffer.
        Overrides:
        deserialize in class PhysicalPlan
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • setIsExecuted

        public void setIsExecuted​(int i)
        Description copied from interface: BatchPlan
        Mark the sub-plan at position i as executed.
        Specified by:
        setIsExecuted in interface BatchPlan
        Parameters:
        i - the position of the sub-plan
      • isExecuted

        public boolean isExecuted​(int i)
        Description copied from interface: BatchPlan
        Whether the sub-plan at position i has been executed.
        Specified by:
        isExecuted in interface BatchPlan
        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: BatchPlan
        Return how many sub-plans are in the plan
        Specified by:
        getBatchSize in interface BatchPlan
        Returns:
        how many sub-plans are in the plan.
      • unsetIsExecuted

        public void unsetIsExecuted​(int i)
        Description copied from interface: BatchPlan
        Mark the sub-plan at position i as not executed.
        Specified by:
        unsetIsExecuted in interface BatchPlan
        Parameters:
        i - the position of the sub-plan