Package org.apache.iotdb.commons.path
Class PathPatternTree
- java.lang.Object
-
- org.apache.iotdb.commons.path.PathPatternTree
-
public class PathPatternTree extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PathPatternTree()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendFullPath(PartialPath fullPath)Append a fullPath (without wildcards) as a branch on the tree.voidappendFullPath(PartialPath devicePath, java.lang.String measurement)Append a fullPath consisting of device and measurement as a branch on the tree.voidappendPathPattern(PartialPath pathPattern)Add a pathPattern (may contain wildcards) to pathPatternList.voidconstructTree()Construct tree according to the pathPatternList.static PathPatternTreedeserialize(java.nio.ByteBuffer buffer)booleanequalWith(PathPatternTree that)java.util.List<java.lang.String>getAllDevicePatterns()java.util.List<PartialPath>getAllPathPatterns()java.util.List<PartialPath>getOverlappedPathPatterns(PartialPath pattern)PathPatternNode<java.lang.Void,PathPatternNode.VoidSerializer>getRoot()booleanisEmpty()booleanisOverlapWith(PathPatternTree patternTree)voidserialize(java.io.DataOutputStream stream)voidserialize(java.nio.ByteBuffer buffer)voidserialize(org.apache.iotdb.tsfile.utils.PublicBAOS outputStream)voidsetRoot(PathPatternNode<java.lang.Void,PathPatternNode.VoidSerializer> root)
-
-
-
Method Detail
-
getRoot
public PathPatternNode<java.lang.Void,PathPatternNode.VoidSerializer> getRoot()
-
setRoot
public void setRoot(PathPatternNode<java.lang.Void,PathPatternNode.VoidSerializer> root)
-
appendFullPath
public void appendFullPath(PartialPath fullPath)
Append a fullPath (without wildcards) as a branch on the tree.
-
appendFullPath
public void appendFullPath(PartialPath devicePath, java.lang.String measurement)
Append a fullPath consisting of device and measurement as a branch on the tree.
-
appendPathPattern
public void appendPathPattern(PartialPath pathPattern)
Add a pathPattern (may contain wildcards) to pathPatternList.
-
constructTree
public void constructTree()
Construct tree according to the pathPatternList.
-
isEmpty
public boolean isEmpty()
-
getAllDevicePatterns
public java.util.List<java.lang.String> getAllDevicePatterns()
-
getAllPathPatterns
public java.util.List<PartialPath> getAllPathPatterns()
-
getOverlappedPathPatterns
public java.util.List<PartialPath> getOverlappedPathPatterns(PartialPath pattern)
-
isOverlapWith
public boolean isOverlapWith(PathPatternTree patternTree)
-
serialize
public void serialize(org.apache.iotdb.tsfile.utils.PublicBAOS outputStream) throws java.io.IOException- Throws:
java.io.IOException
-
serialize
public void serialize(java.io.DataOutputStream stream) throws java.io.IOException- Throws:
java.io.IOException
-
serialize
public void serialize(java.nio.ByteBuffer buffer)
-
deserialize
public static PathPatternTree deserialize(java.nio.ByteBuffer buffer)
-
equalWith
public boolean equalWith(PathPatternTree that)
-
-