Class MeasurementPath

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

    public class MeasurementPath
    extends org.apache.iotdb.commons.path.PartialPath
    See Also:
    Serialized Form
    • Field Summary

      • 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
      MeasurementPath()  
      MeasurementPath​(java.lang.String measurementPath)  
      MeasurementPath​(java.lang.String[] nodes, org.apache.iotdb.tsfile.write.schema.MeasurementSchema schema)  
      MeasurementPath​(java.lang.String device, java.lang.String measurement, org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)  
      MeasurementPath​(java.lang.String measurementPath, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType type)  
      MeasurementPath​(org.apache.iotdb.commons.path.PartialPath measurementPath, org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)  
      MeasurementPath​(org.apache.iotdb.commons.path.PartialPath measurementPath, org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema, boolean isUnderAlignedEntity)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MeasurementPath clone()  
      org.apache.iotdb.commons.path.PartialPath copy()  
      static MeasurementPath deserialize​(java.nio.ByteBuffer byteBuffer)  
      java.lang.String getFullPathWithAlias()  
      java.lang.String getMeasurementAlias()  
      org.apache.iotdb.tsfile.write.schema.IMeasurementSchema getMeasurementSchema()  
      org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getSeriesType()  
      byte getSeriesTypeInByte()  
      boolean isMeasurementAliasExists()  
      boolean isUnderAlignedEntity()  
      void removeMeasurementAlias()  
      void serialize​(java.io.DataOutputStream stream)  
      void serialize​(java.nio.ByteBuffer byteBuffer)  
      void setMeasurementAlias​(java.lang.String measurementAlias)  
      void setMeasurementSchema​(org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)  
      void setUnderAlignedEntity​(boolean underAlignedEntity)  
      org.apache.iotdb.commons.path.PartialPath transformToExactPath()
      if isUnderAlignedEntity is true, return an AlignedPath with only one sub sensor otherwise, return itself
      org.apache.iotdb.commons.path.PartialPath transformToPartialPath()  
      • Methods inherited from class org.apache.iotdb.commons.path.PartialPath

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

        getColumnNum, setMeasurement
      • Methods inherited from class java.lang.Object

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

      • MeasurementPath

        public MeasurementPath()
      • MeasurementPath

        public MeasurementPath​(java.lang.String measurementPath)
                        throws org.apache.iotdb.commons.exception.IllegalPathException
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
      • MeasurementPath

        public MeasurementPath​(java.lang.String measurementPath,
                               org.apache.iotdb.tsfile.file.metadata.enums.TSDataType type)
                        throws org.apache.iotdb.commons.exception.IllegalPathException
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
      • MeasurementPath

        public MeasurementPath​(org.apache.iotdb.commons.path.PartialPath measurementPath,
                               org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)
      • MeasurementPath

        public MeasurementPath​(org.apache.iotdb.commons.path.PartialPath measurementPath,
                               org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema,
                               boolean isUnderAlignedEntity)
      • MeasurementPath

        public MeasurementPath​(java.lang.String device,
                               java.lang.String measurement,
                               org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)
                        throws org.apache.iotdb.commons.exception.IllegalPathException
        Throws:
        org.apache.iotdb.commons.exception.IllegalPathException
      • MeasurementPath

        public MeasurementPath​(java.lang.String[] nodes,
                               org.apache.iotdb.tsfile.write.schema.MeasurementSchema schema)
    • Method Detail

      • getMeasurementSchema

        public org.apache.iotdb.tsfile.write.schema.IMeasurementSchema 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
      • getSeriesTypeInByte

        public byte getSeriesTypeInByte()
      • setMeasurementSchema

        public void setMeasurementSchema​(org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)
      • getMeasurementAlias

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

        public void setMeasurementAlias​(java.lang.String measurementAlias)
        Overrides:
        setMeasurementAlias in class org.apache.iotdb.commons.path.PartialPath
      • removeMeasurementAlias

        public void removeMeasurementAlias()
      • isMeasurementAliasExists

        public boolean isMeasurementAliasExists()
        Overrides:
        isMeasurementAliasExists in class org.apache.iotdb.commons.path.PartialPath
      • getFullPathWithAlias

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

        public boolean isUnderAlignedEntity()
      • setUnderAlignedEntity

        public void setUnderAlignedEntity​(boolean underAlignedEntity)
      • copy

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

        public org.apache.iotdb.commons.path.PartialPath transformToExactPath()
        if isUnderAlignedEntity is true, return an AlignedPath with only one sub sensor otherwise, return itself
      • clone

        public MeasurementPath 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 MeasurementPath deserialize​(java.nio.ByteBuffer byteBuffer)
      • transformToPartialPath

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