Class Path

  • All Implemented Interfaces:
    Serializable, Comparable<Path>

    public class Path
    extends Object
    implements Serializable, Comparable<Path>
    This class represent a time series in TsFile, which is usually defined by a device and a measurement.

    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.

    See Also:
    Serialized Form
    • Field Detail

      • device

        protected String device
      • fullPath

        protected String fullPath
    • Constructor Detail

      • Path

        public Path()
      • Path

        public Path​(String pathSc)
        this constructor doesn't split the path, only useful for table header.
        Parameters:
        pathSc - the path that wouldn't be split.
      • Path

        public Path​(String pathSc,
                    boolean needSplit)
        Parameters:
        pathSc - path
        needSplit - whether need to be split to device and measurement, doesn't support escape character yet.
      • Path

        public Path​(String device,
                    String measurement,
                    boolean needCheck)
        construct a Path directly using device and measurement, no need to reformat the path
        Parameters:
        device - root.deviceType.d1
        measurement - s1 , does not contain TsFileConstant.PATH_SEPARATOR
        needCheck - need to validate the correctness of the path