Package org.apache.iotdb.commons.path
Class MeasurementPath
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.common.Path
-
- org.apache.iotdb.commons.path.PartialPath
-
- org.apache.iotdb.commons.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 PartialPath
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.commons.path.PartialPath
nodes
-
-
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(PartialPath path, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType type)MeasurementPath(PartialPath measurementPath, org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)MeasurementPath(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()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()java.util.Map<java.lang.String,java.lang.String>getTagMap()booleanisMeasurementAliasExists()booleanisUnderAlignedEntity()static MeasurementPathparseDataFromString(java.lang.String measurementPathData)voidremoveMeasurementAlias()voidserialize(java.io.OutputStream stream)voidserialize(java.nio.ByteBuffer byteBuffer)voidsetMeasurementAlias(java.lang.String measurementAlias)voidsetMeasurementSchema(org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)voidsetTagMap(java.util.Map<java.lang.String,java.lang.String> tagMap)voidsetUnderAlignedEntity(boolean underAlignedEntity)static java.lang.StringtransformDataToString(MeasurementPath measurementPath)In specific scenarios, like internal create timeseries, the message can only be passed as String format.PartialPathtransformToExactPath()if isUnderAlignedEntity is true, return an AlignedPath with only one sub sensor otherwise, return itselfPartialPathtransformToPartialPath()-
Methods inherited from class org.apache.iotdb.commons.path.PartialPath
alterPrefixPath, compareTo, concatNode, concatPath, concatPath, containNode, equals, equals, estimateSize, fromStringList, getDevice, getDevicePath, getDevicePathPattern, getFirstNode, getFullPath, getMeasurement, getNodeLength, getNodes, getTailNode, hashCode, hasWildcard, include, matchFullPath, matchPrefixPath, overlapWith, overlapWithFullPathPrefix, prefixMatchFullPath, serialize, serialize, serializeWithoutType, serializeWithoutType, startsWith, startWith, toString, toStringList, toTSFilePath
-
-
-
-
Constructor Detail
-
MeasurementPath
public MeasurementPath()
-
MeasurementPath
public MeasurementPath(java.lang.String measurementPath) throws IllegalPathException- Throws:
IllegalPathException
-
MeasurementPath
public MeasurementPath(java.lang.String measurementPath, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType type) throws IllegalPathException- Throws:
IllegalPathException
-
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:
getMeasurementSchemain classPartialPath
-
getTagMap
public java.util.Map<java.lang.String,java.lang.String> getTagMap()
-
getSeriesType
public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getSeriesType()
- Overrides:
getSeriesTypein classPartialPath
-
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)
-
getMeasurementAlias
public java.lang.String getMeasurementAlias()
- Overrides:
getMeasurementAliasin classPartialPath
-
setMeasurementAlias
public void setMeasurementAlias(java.lang.String measurementAlias)
- Overrides:
setMeasurementAliasin classPartialPath
-
removeMeasurementAlias
public void removeMeasurementAlias()
-
isMeasurementAliasExists
public boolean isMeasurementAliasExists()
- Overrides:
isMeasurementAliasExistsin classPartialPath
-
getFullPathWithAlias
public java.lang.String getFullPathWithAlias()
- Overrides:
getFullPathWithAliasin classPartialPath
-
isUnderAlignedEntity
public boolean isUnderAlignedEntity()
-
setUnderAlignedEntity
public void setUnderAlignedEntity(boolean underAlignedEntity)
-
copy
public PartialPath copy()
- Overrides:
copyin classPartialPath
-
transformToExactPath
public PartialPath transformToExactPath()
if isUnderAlignedEntity is true, return an AlignedPath with only one sub sensor otherwise, return itself
-
clone
public MeasurementPath clone()
- Overrides:
clonein classPartialPath
-
serialize
public void serialize(java.nio.ByteBuffer byteBuffer)
- Overrides:
serializein classPartialPath
-
serialize
public void serialize(java.io.OutputStream stream) throws java.io.IOException- Overrides:
serializein classPartialPath- Throws:
java.io.IOException
-
deserialize
public static MeasurementPath deserialize(java.nio.ByteBuffer byteBuffer)
-
transformToPartialPath
public PartialPath transformToPartialPath()
- Overrides:
transformToPartialPathin classPartialPath
-
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)
-
-