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 org.apache.iotdb.commons.path.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 Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String VECTOR_PLACEHOLDER  
      • Fields inherited from class org.apache.iotdb.commons.path.PartialPath

        nodes
      • Fields inherited from class org.apache.iotdb.tsfile.read.common.Path

        device, fullPath
    • Constructor Summary

      Constructors 
      Constructor Description
      AlignedPath()  
      AlignedPath​(java.lang.String vectorPath)  
      AlignedPath​(java.lang.String vectorPath, java.lang.String subSensor)  
      AlignedPath​(java.lang.String vectorPath, java.util.List<java.lang.String> subSensorsList)  
      AlignedPath​(java.lang.String vectorPath, java.util.List<java.lang.String> measurementList, java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemaList)  
      AlignedPath​(org.apache.iotdb.commons.path.PartialPath vectorPath, java.lang.String subSensor)  
      AlignedPath​(MeasurementPath path)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addMeasurement​(MeasurementPath measurementPath)  
      void addMeasurements​(java.util.List<java.lang.String> measurements)  
      void addSchemas​(java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemas)  
      AlignedPath clone()  
      org.apache.iotdb.commons.path.PartialPath copy()  
      static AlignedPath deserialize​(java.nio.ByteBuffer byteBuffer)  
      boolean equals​(java.lang.Object o)  
      int getColumnNum()  
      java.lang.String getDevice()  
      org.apache.iotdb.commons.path.PartialPath getDevicePath()  
      java.lang.String getFormattedString()  
      java.lang.String getMeasurement()  
      java.lang.String getMeasurement​(int index)  
      java.util.List<java.lang.String> getMeasurementList()  
      MeasurementPath getMeasurementPath()  
      org.apache.iotdb.tsfile.write.schema.VectorMeasurementSchema getMeasurementSchema()  
      org.apache.iotdb.commons.path.PartialPath getPathWithMeasurement​(int index)  
      java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> getSchemaList()  
      org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getSeriesType()  
      int hashCode()  
      void mergeAlignedPath​(AlignedPath alignedPath)
      merge another aligned path's sub sensors into this one
      void serialize​(java.io.DataOutputStream stream)  
      void serialize​(java.nio.ByteBuffer byteBuffer)  
      void setMeasurementList​(java.util.List<java.lang.String> measurementList)  
      org.apache.iotdb.commons.path.PartialPath transformToPartialPath()  
      • Methods inherited from class org.apache.iotdb.commons.path.PartialPath

        alterPrefixPath, compareTo, concatNode, concatPath, concatPath, equals, estimateSize, fromStringList, getFirstNode, getFullPath, getFullPathWithAlias, getMeasurementAlias, getNodeLength, getNodes, getTailNode, isMeasurementAliasExists, matchFullPath, matchPrefixPath, overlapWith, prefixMatchFullPath, serializeWithoutType, serializeWithoutType, setMeasurementAlias, startsWith, toString, toStringList, toTSFilePath
      • Methods inherited from class org.apache.iotdb.tsfile.read.common.Path

        setMeasurement
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • VECTOR_PLACEHOLDER

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

      • AlignedPath

        public AlignedPath()
      • AlignedPath

        public AlignedPath​(java.lang.String vectorPath,
                           java.util.List<java.lang.String> subSensorsList)
                    throws org.apache.iotdb.commons.exception.IllegalPathException
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
      • AlignedPath

        public AlignedPath​(java.lang.String vectorPath,
                           java.util.List<java.lang.String> measurementList,
                           java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemaList)
                    throws org.apache.iotdb.commons.exception.IllegalPathException
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
      • AlignedPath

        public AlignedPath​(java.lang.String vectorPath,
                           java.lang.String subSensor)
                    throws org.apache.iotdb.commons.exception.IllegalPathException
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
      • AlignedPath

        public AlignedPath​(org.apache.iotdb.commons.path.PartialPath vectorPath,
                           java.lang.String subSensor)
                    throws org.apache.iotdb.commons.exception.IllegalPathException
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
      • AlignedPath

        public AlignedPath​(java.lang.String vectorPath)
                    throws org.apache.iotdb.commons.exception.IllegalPathException
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
    • Method Detail

      • getDevicePath

        public org.apache.iotdb.commons.path.PartialPath getDevicePath()
        Overrides:
        getDevicePath in class org.apache.iotdb.commons.path.PartialPath
      • getDevice

        public java.lang.String getDevice()
        Overrides:
        getDevice in class org.apache.iotdb.commons.path.PartialPath
      • getMeasurement

        public java.lang.String getMeasurement()
        Overrides:
        getMeasurement in class org.apache.iotdb.commons.path.PartialPath
      • getMeasurementList

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

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

        public org.apache.iotdb.commons.path.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)
      • 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 org.apache.iotdb.commons.path.PartialPath
      • getSeriesType

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

        public org.apache.iotdb.commons.path.PartialPath copy()
        Overrides:
        copy in class org.apache.iotdb.commons.path.PartialPath
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class org.apache.iotdb.commons.path.PartialPath
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.apache.iotdb.commons.path.PartialPath
      • getColumnNum

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

        public AlignedPath clone()
        Overrides:
        clone in class org.apache.iotdb.commons.path.PartialPath
      • serialize

        public void serialize​(java.nio.ByteBuffer byteBuffer)
        Overrides:
        serialize in class org.apache.iotdb.commons.path.PartialPath
      • serialize

        public void serialize​(java.io.DataOutputStream stream)
                       throws java.io.IOException
        Overrides:
        serialize in class org.apache.iotdb.commons.path.PartialPath
        Throws:
        java.io.IOException
      • deserialize

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

        public org.apache.iotdb.commons.path.PartialPath transformToPartialPath()
        Overrides:
        transformToPartialPath in class org.apache.iotdb.commons.path.PartialPath
      • getFormattedString

        public java.lang.String getFormattedString()