Interface ISchemaTree

    • Method Detail

      • searchMeasurementPaths

        org.apache.iotdb.tsfile.utils.Pair<java.util.List<MeasurementPath>,​java.lang.Integer> searchMeasurementPaths​(org.apache.iotdb.commons.path.PartialPath pathPattern,
                                                                                                                           int slimit,
                                                                                                                           int soffset,
                                                                                                                           boolean isPrefixMatch)
        Return all measurement paths for given path pattern and filter the result by slimit and offset.
        Parameters:
        pathPattern - can be a pattern or a full path of timeseries.
        isPrefixMatch - if true, the path pattern is used to match prefix path
        Returns:
        Left: all measurement paths; Right: remaining series offset
      • searchMeasurementPaths

        org.apache.iotdb.tsfile.utils.Pair<java.util.List<MeasurementPath>,​java.lang.Integer> searchMeasurementPaths​(org.apache.iotdb.commons.path.PartialPath pathPattern)
      • getMatchedDevices

        java.util.List<DeviceSchemaInfo> getMatchedDevices​(org.apache.iotdb.commons.path.PartialPath pathPattern,
                                                           boolean isPrefixMatch)
        Get all device matching the path pattern.
        Parameters:
        pathPattern - the pattern of the target devices.
        Returns:
        A HashSet instance which stores info of the devices matching the given path pattern.
      • getMatchedDevices

        java.util.List<DeviceSchemaInfo> getMatchedDevices​(org.apache.iotdb.commons.path.PartialPath pathPattern)
      • searchDeviceSchemaInfo

        DeviceSchemaInfo searchDeviceSchemaInfo​(org.apache.iotdb.commons.path.PartialPath devicePath,
                                                java.util.List<java.lang.String> measurements)
      • getBelongedStorageGroup

        java.lang.String getBelongedStorageGroup​(java.lang.String pathName)
        Get storage group name by path

        e.g., root.sg1 is a storage group and path = root.sg1.d1, return root.sg1

        Parameters:
        pathName - only full path, cannot be path pattern
        Returns:
        storage group in the given path
      • getBelongedStorageGroup

        java.lang.String getBelongedStorageGroup​(org.apache.iotdb.commons.path.PartialPath path)
      • getStorageGroups

        java.util.List<java.lang.String> getStorageGroups()
      • isEmpty

        boolean isEmpty()