Class AlignedPath

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<org.apache.iotdb.tsfile.read.common.Path>

    public class AlignedPath
    extends PartialPath
    VectorPartialPath represents many fullPaths of aligned timeseries. In the AlignedPath, the nodes in PartialPath is deviceId e.g. VectorPartialPath nodes=root.sg1.alignedD1 measurementList=[s1, s2]
    See Also:
    Serialized Form
    • Field Detail

      • VECTOR_PLACEHOLDER

        public static final java.lang.String VECTOR_PLACEHOLDER
        See Also:
        Constant Field Values
    • Method Detail

      • sortMeasurement

        public void sortMeasurement​(java.util.Comparator<java.lang.String> comparator)
      • getMeasurementList

        public java.util.List<java.lang.String> getMeasurementList()
      • getMeasurement

        public java.lang.String getMeasurement​(int index)
      • getPathWithMeasurement

        public PartialPath getPathWithMeasurement​(int index)
      • setMeasurementList

        public void setMeasurementList​(java.util.List<java.lang.String> measurementList)
      • addMeasurements

        public void addMeasurements​(java.util.List<java.lang.String> measurements)
      • addSchemas

        public void addSchemas​(java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemas)
      • addMeasurement

        public void addMeasurement​(MeasurementPath measurementPath)
      • addMeasurement

        public void addMeasurement​(java.lang.String measurement,
                                   org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)
      • mergeAlignedPath

        public void mergeAlignedPath​(AlignedPath alignedPath)
        merge another aligned path's sub sensors into this one
        Parameters:
        alignedPath - The caller need to ensure the alignedPath must have same device as this one and these two doesn't have same sub sensor
      • getSchemaList

        public java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> getSchemaList()
      • getMeasurementSchema

        public org.apache.iotdb.tsfile.write.schema.VectorMeasurementSchema getMeasurementSchema()
        Overrides:
        getMeasurementSchema in class PartialPath
      • getSeriesType

        public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getSeriesType()
        Overrides:
        getSeriesType in class PartialPath
      • equals

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

        public int getColumnNum()
        Overrides:
        getColumnNum in class org.apache.iotdb.tsfile.read.common.Path
      • serialize

        public void serialize​(java.nio.ByteBuffer byteBuffer)
        Overrides:
        serialize in class PartialPath
      • serialize

        public void serialize​(java.io.OutputStream stream)
                       throws java.io.IOException
        Overrides:
        serialize in class PartialPath
        Throws:
        java.io.IOException
      • deserialize

        public static AlignedPath deserialize​(java.nio.ByteBuffer byteBuffer)
      • getFormattedString

        public java.lang.String getFormattedString()