Class PathPatternTree
- java.lang.Object
-
- org.apache.iotdb.db.mpp.common.schematree.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(org.apache.iotdb.commons.path.PartialPath fullPath)Append a fullPath (without wildcards) as a branch on the tree.voidappendFullPath(org.apache.iotdb.commons.path.PartialPath devicePath, java.lang.String measurement)Append a fullPath consisting of device and measurement as a branch on the tree.voidappendPathPattern(org.apache.iotdb.commons.path.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<org.apache.iotdb.commons.path.PartialPath>getAllPathPatterns()java.util.List<org.apache.iotdb.commons.path.PartialPath>getOverlappedPathPatterns(org.apache.iotdb.commons.path.PartialPath pattern)PathPatternNodegetRoot()booleanisEmpty()voidserialize(java.io.DataOutputStream stream)voidserialize(java.nio.ByteBuffer buffer)voidserialize(org.apache.iotdb.tsfile.utils.PublicBAOS outputStream)voidsetRoot(PathPatternNode root)
-
-
-
Method Detail
-
getRoot
public PathPatternNode getRoot()
-
setRoot
public void setRoot(PathPatternNode root)
-
appendFullPath
public void appendFullPath(org.apache.iotdb.commons.path.PartialPath fullPath)
Append a fullPath (without wildcards) as a branch on the tree.
-
appendFullPath
public void appendFullPath(org.apache.iotdb.commons.path.PartialPath devicePath, java.lang.String measurement)Append a fullPath consisting of device and measurement as a branch on the tree.
-
appendPathPattern
public void appendPathPattern(org.apache.iotdb.commons.path.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<org.apache.iotdb.commons.path.PartialPath> getAllPathPatterns()
-
getOverlappedPathPatterns
public java.util.List<org.apache.iotdb.commons.path.PartialPath> getOverlappedPathPatterns(org.apache.iotdb.commons.path.PartialPath pattern)
-
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)
-
-