Class FlushPlan

  • All Implemented Interfaces:
    org.apache.iotdb.consensus.common.request.IConsensusRequest

    public class FlushPlan
    extends PhysicalPlan
    • Constructor Detail

      • FlushPlan

        public FlushPlan()
        only for deserialize
      • FlushPlan

        public FlushPlan​(java.lang.Boolean isSeq,
                         java.util.List<org.apache.iotdb.commons.path.PartialPath> storageGroups)
      • FlushPlan

        public FlushPlan​(java.lang.Boolean isSeq,
                         boolean isSync,
                         java.util.Map<org.apache.iotdb.commons.path.PartialPath,​java.util.List<org.apache.iotdb.tsfile.utils.Pair<java.lang.Long,​java.lang.Boolean>>> storageGroupPartitionIds)
    • Method Detail

      • isSeq

        public java.lang.Boolean isSeq()
      • isSync

        public boolean isSync()
      • getPaths

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

        public java.util.Map<org.apache.iotdb.commons.path.PartialPath,​java.util.List<org.apache.iotdb.tsfile.utils.Pair<java.lang.Long,​java.lang.Boolean>>> getStorageGroupPartitionIds()
      • 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
      • writeStorageGroupPartitionIds

        public void writeStorageGroupPartitionIds​(java.io.DataOutputStream stream)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeStorageGroupPartitionIds

        public void writeStorageGroupPartitionIds​(java.nio.ByteBuffer buffer)
      • deserialize

        public void deserialize​(java.nio.ByteBuffer buffer)
        Description copied from class: PhysicalPlan
        Deserialize the plan from the given buffer.
        Overrides:
        deserialize in class PhysicalPlan
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object