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 PartialPath
    See Also:
    Serialized Form
    • Constructor Detail

      • MeasurementPath

        public MeasurementPath()
      • MeasurementPath

        public MeasurementPath​(PartialPath path,
                               org.apache.iotdb.tsfile.file.metadata.enums.TSDataType type)
      • MeasurementPath

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

        public MeasurementPath​(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 IllegalPathException
        Throws:
        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 PartialPath
      • getTagMap

        public java.util.Map<java.lang.String,​java.lang.String> getTagMap()
      • getSeriesType

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

        public byte getSeriesTypeInByte()
      • setMeasurementSchema

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

        public void setTagMap​(java.util.Map<java.lang.String,​java.lang.String> tagMap)
      • removeMeasurementAlias

        public void removeMeasurementAlias()
      • isUnderAlignedEntity

        public boolean isUnderAlignedEntity()
      • setUnderAlignedEntity

        public void setUnderAlignedEntity​(boolean underAlignedEntity)
      • transformToExactPath

        public PartialPath transformToExactPath()
        if isUnderAlignedEntity is true, return an AlignedPath with only one sub sensor otherwise, return itself
      • 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 MeasurementPath deserialize​(java.nio.ByteBuffer byteBuffer)
      • transformDataToString

        public static java.lang.String transformDataToString​(MeasurementPath measurementPath)
        In specific scenarios, like internal create timeseries, the message can only be passed as String format.
      • parseDataFromString

        public static MeasurementPath parseDataFromString​(java.lang.String measurementPathData)