Interface ISchemaTree
-
- All Known Implementing Classes:
ClusterSchemaTree,DeviceGroupSchemaTree
public interface ISchemaTree
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<MeasurementPath>getAllMeasurement()java.lang.StringgetBelongedStorageGroup(java.lang.String pathName)Get storage group name by pathjava.lang.StringgetBelongedStorageGroup(org.apache.iotdb.commons.path.PartialPath path)java.util.List<DeviceSchemaInfo>getMatchedDevices(org.apache.iotdb.commons.path.PartialPath pathPattern)java.util.List<DeviceSchemaInfo>getMatchedDevices(org.apache.iotdb.commons.path.PartialPath pathPattern, boolean isPrefixMatch)Get all device matching the path pattern.java.util.List<java.lang.String>getStorageGroups()booleanisEmpty()DeviceSchemaInfosearchDeviceSchemaInfo(org.apache.iotdb.commons.path.PartialPath devicePath, java.util.List<java.lang.String> measurements)org.apache.iotdb.tsfile.utils.Pair<java.util.List<MeasurementPath>,java.lang.Integer>searchMeasurementPaths(org.apache.iotdb.commons.path.PartialPath pathPattern)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.
-
-
-
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)
-
getAllMeasurement
java.util.List<MeasurementPath> getAllMeasurement()
-
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 pathe.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()
-
-