public class Path extends Object implements Serializable, Comparable<Path>
If you want to use one String such as "device1.measurement1" to init Path in TsFile API, please use the new Path(string, true) to split it to device and measurement.
| Modifier and Type | Field and Description |
|---|---|
protected String |
device |
protected String |
fullPath |
| Constructor and Description |
|---|
Path() |
Path(String pathSc)
this constructor doesn't split the path, only useful for table header.
|
Path(String pathSc,
boolean needSplit) |
Path(String device,
String measurement)
construct a Path directly using device and measurement, no need to reformat the path
|
| Modifier and Type | Method and Description |
|---|---|
Path |
clone() |
int |
compareTo(Path path) |
static Path |
deserialize(ByteBuffer byteBuffer) |
boolean |
equals(Object obj) |
boolean |
equals(String obj) |
int |
getColumnNum()
return the column contained by this path
|
String |
getDevice() |
String |
getFullPath() |
String |
getFullPathWithAlias() |
String |
getMeasurement() |
int |
hashCode() |
void |
serialize(ByteBuffer byteBuffer) |
void |
serialize(DataOutputStream stream) |
protected void |
serializeWithoutType(ByteBuffer byteBuffer) |
protected void |
serializeWithoutType(DataOutputStream stream) |
void |
setMeasurement(String measurement) |
String |
toString() |
public Path()
public Path(String pathSc)
pathSc - the path that wouldn't be split.public Path(String pathSc, boolean needSplit)
pathSc - pathneedSplit - whether need to be split to device and measurement, doesn't support escape
character yet.public String getFullPath()
public String getDevice()
public String getMeasurement()
public String getFullPathWithAlias()
public void setMeasurement(String measurement)
public boolean equals(String obj)
public int compareTo(Path path)
compareTo in interface Comparable<Path>public int getColumnNum()
public void serialize(ByteBuffer byteBuffer)
public void serialize(DataOutputStream stream) throws IOException
IOExceptionprotected void serializeWithoutType(ByteBuffer byteBuffer)
protected void serializeWithoutType(DataOutputStream stream) throws IOException
IOExceptionpublic static Path deserialize(ByteBuffer byteBuffer)
Copyright © 2022 The Apache Software Foundation. All rights reserved.