Class AlignedPath
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.common.Path
-
- org.apache.iotdb.commons.path.PartialPath
-
- org.apache.iotdb.db.metadata.path.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.PartialPathVectorPartialPath 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.StringVECTOR_PLACEHOLDER
-
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 voidaddMeasurement(MeasurementPath measurementPath)voidaddMeasurements(java.util.List<java.lang.String> measurements)voidaddSchemas(java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemas)AlignedPathclone()org.apache.iotdb.commons.path.PartialPathcopy()static AlignedPathdeserialize(java.nio.ByteBuffer byteBuffer)booleanequals(java.lang.Object o)intgetColumnNum()java.lang.StringgetDevice()org.apache.iotdb.commons.path.PartialPathgetDevicePath()java.lang.StringgetFormattedString()java.lang.StringgetMeasurement()java.lang.StringgetMeasurement(int index)java.util.List<java.lang.String>getMeasurementList()MeasurementPathgetMeasurementPath()org.apache.iotdb.tsfile.write.schema.VectorMeasurementSchemagetMeasurementSchema()org.apache.iotdb.commons.path.PartialPathgetPathWithMeasurement(int index)java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema>getSchemaList()org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypegetSeriesType()inthashCode()voidmergeAlignedPath(AlignedPath alignedPath)merge another aligned path's sub sensors into this onevoidserialize(java.io.DataOutputStream stream)voidserialize(java.nio.ByteBuffer byteBuffer)voidsetMeasurementList(java.util.List<java.lang.String> measurementList)org.apache.iotdb.commons.path.PartialPathtransformToPartialPath()-
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
-
-
-
-
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(MeasurementPath path)
-
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:
getDevicePathin classorg.apache.iotdb.commons.path.PartialPath
-
getDevice
public java.lang.String getDevice()
- Overrides:
getDevicein classorg.apache.iotdb.commons.path.PartialPath
-
getMeasurement
public java.lang.String getMeasurement()
- Overrides:
getMeasurementin classorg.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:
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
-
copy
public org.apache.iotdb.commons.path.PartialPath copy()
- Overrides:
copyin classorg.apache.iotdb.commons.path.PartialPath
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classorg.apache.iotdb.commons.path.PartialPath
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.apache.iotdb.commons.path.PartialPath
-
getColumnNum
public int getColumnNum()
- Overrides:
getColumnNumin classorg.apache.iotdb.tsfile.read.common.Path
-
clone
public AlignedPath 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 AlignedPath deserialize(java.nio.ByteBuffer byteBuffer)
-
transformToPartialPath
public org.apache.iotdb.commons.path.PartialPath transformToPartialPath()
- Overrides:
transformToPartialPathin classorg.apache.iotdb.commons.path.PartialPath
-
getMeasurementPath
public MeasurementPath getMeasurementPath()
-
getFormattedString
public java.lang.String getFormattedString()
-
-