Class MeasurementPath
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.common.Path
-
- org.apache.iotdb.commons.path.PartialPath
-
- org.apache.iotdb.db.metadata.path.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
-
-
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 MeasurementPathclone()org.apache.iotdb.commons.path.PartialPathcopy()static MeasurementPathdeserialize(java.nio.ByteBuffer byteBuffer)java.lang.StringgetFullPathWithAlias()java.lang.StringgetMeasurementAlias()org.apache.iotdb.tsfile.write.schema.IMeasurementSchemagetMeasurementSchema()org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypegetSeriesType()bytegetSeriesTypeInByte()booleanisMeasurementAliasExists()booleanisUnderAlignedEntity()voidremoveMeasurementAlias()voidserialize(java.io.DataOutputStream stream)voidserialize(java.nio.ByteBuffer byteBuffer)voidsetMeasurementAlias(java.lang.String measurementAlias)voidsetMeasurementSchema(org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)voidsetUnderAlignedEntity(boolean underAlignedEntity)org.apache.iotdb.commons.path.PartialPathtransformToExactPath()if isUnderAlignedEntity is true, return an AlignedPath with only one sub sensor otherwise, return itselforg.apache.iotdb.commons.path.PartialPathtransformToPartialPath()-
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
-
-
-
-
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:
getMeasurementSchemain classorg.apache.iotdb.commons.path.PartialPath
-
getSeriesType
public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getSeriesType()
- Overrides:
getSeriesTypein classorg.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:
getMeasurementAliasin classorg.apache.iotdb.commons.path.PartialPath
-
setMeasurementAlias
public void setMeasurementAlias(java.lang.String measurementAlias)
- Overrides:
setMeasurementAliasin classorg.apache.iotdb.commons.path.PartialPath
-
removeMeasurementAlias
public void removeMeasurementAlias()
-
isMeasurementAliasExists
public boolean isMeasurementAliasExists()
- Overrides:
isMeasurementAliasExistsin classorg.apache.iotdb.commons.path.PartialPath
-
getFullPathWithAlias
public java.lang.String getFullPathWithAlias()
- Overrides:
getFullPathWithAliasin classorg.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:
copyin classorg.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:
clonein classorg.apache.iotdb.commons.path.PartialPath
-
serialize
public void serialize(java.nio.ByteBuffer byteBuffer)
- Overrides:
serializein classorg.apache.iotdb.commons.path.PartialPath
-
serialize
public void serialize(java.io.DataOutputStream stream) throws java.io.IOException- Overrides:
serializein classorg.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:
transformToPartialPathin classorg.apache.iotdb.commons.path.PartialPath
-
-