Package org.apache.iotdb.commons.path
Class AlignedPath
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.common.Path
-
- org.apache.iotdb.commons.path.PartialPath
-
- org.apache.iotdb.commons.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 PartialPath
VectorPartialPath 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-
Fields inherited from class org.apache.iotdb.commons.path.PartialPath
nodes
-
-
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(MeasurementPath path)AlignedPath(PartialPath vectorPath)AlignedPath(PartialPath vectorPath, java.lang.String subSensor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMeasurement(java.lang.String measurement, org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)voidaddMeasurement(MeasurementPath measurementPath)voidaddMeasurements(java.util.List<java.lang.String> measurements)voidaddSchemas(java.util.List<org.apache.iotdb.tsfile.write.schema.IMeasurementSchema> schemas)AlignedPathclone()PartialPathcopy()static AlignedPathdeserialize(java.nio.ByteBuffer byteBuffer)booleanequals(java.lang.Object o)intgetColumnNum()java.lang.StringgetDevice()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()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.OutputStream stream)voidserialize(java.nio.ByteBuffer byteBuffer)voidsetMeasurementList(java.util.List<java.lang.String> measurementList)voidsortMeasurement(java.util.Comparator<java.lang.String> comparator)PartialPathtransformToPartialPath()-
Methods inherited from class org.apache.iotdb.commons.path.PartialPath
alterPrefixPath, compareTo, concatNode, concatPath, concatPath, containNode, equals, estimateSize, fromStringList, getDevicePathPattern, getFirstNode, getFullPath, getFullPathWithAlias, getMeasurementAlias, getNodeLength, getNodes, getTailNode, hasWildcard, include, isMeasurementAliasExists, matchFullPath, matchPrefixPath, overlapWith, overlapWithFullPathPrefix, prefixMatchFullPath, serialize, serialize, serializeWithoutType, serializeWithoutType, setMeasurementAlias, startsWith, startWith, 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 IllegalPathException- Throws:
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 IllegalPathException- Throws:
IllegalPathException
-
AlignedPath
public AlignedPath(java.lang.String vectorPath, java.lang.String subSensor) throws IllegalPathException- Throws:
IllegalPathException
-
AlignedPath
public AlignedPath(PartialPath vectorPath, java.lang.String subSensor) throws IllegalPathException
- Throws:
IllegalPathException
-
AlignedPath
public AlignedPath(PartialPath vectorPath)
-
AlignedPath
public AlignedPath(MeasurementPath path)
-
AlignedPath
public AlignedPath(java.lang.String vectorPath) throws IllegalPathException- Throws:
IllegalPathException
-
-
Method Detail
-
sortMeasurement
public void sortMeasurement(java.util.Comparator<java.lang.String> comparator)
-
getDevicePath
public PartialPath getDevicePath()
- Overrides:
getDevicePathin classPartialPath
-
getDevice
public java.lang.String getDevice()
- Overrides:
getDevicein classPartialPath
-
getMeasurement
public java.lang.String getMeasurement()
- Overrides:
getMeasurementin classPartialPath
-
getMeasurementList
public java.util.List<java.lang.String> getMeasurementList()
-
getMeasurement
public java.lang.String getMeasurement(int index)
-
getPathWithMeasurement
public 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)
-
addMeasurement
public void addMeasurement(java.lang.String measurement, org.apache.iotdb.tsfile.write.schema.IMeasurementSchema measurementSchema)
-
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 classPartialPath
-
getSeriesType
public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getSeriesType()
- Overrides:
getSeriesTypein classPartialPath
-
copy
public PartialPath copy()
- Overrides:
copyin classPartialPath
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classPartialPath
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPartialPath
-
getColumnNum
public int getColumnNum()
- Overrides:
getColumnNumin classorg.apache.iotdb.tsfile.read.common.Path
-
clone
public AlignedPath 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 AlignedPath deserialize(java.nio.ByteBuffer byteBuffer)
-
transformToPartialPath
public PartialPath transformToPartialPath()
- Overrides:
transformToPartialPathin classPartialPath
-
getMeasurementPath
public MeasurementPath getMeasurementPath()
-
getFormattedString
public java.lang.String getFormattedString()
-
-