Class GridTreePrinter<T>
java.lang.Object
org.apache.ignite.internal.util.lang.GridTreePrinter<T>
Abstract tree structure printer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringformatTreeNode(T treeNode) getChildren(T treeNode) Returns list of tree node children.voidprint(T rootNode, Appendable a)
-
Constructor Details
-
GridTreePrinter
public GridTreePrinter()
-
-
Method Details
-
print
- Parameters:
rootNode- Root tree node.a- Output.- Throws:
IOException
-
print
- Parameters:
rootNode- Root tree node.- Returns:
- String representation of the tree.
-
getChildren
Returns list of tree node children.- Parameters:
treeNode- The tree node.- Returns:
- List of children (possibly empty, if it is a leaf page) or null if the node can't be read (e.g., is locked).
-
formatTreeNode
- Parameters:
treeNode- Tree node.- Returns:
- String representation.
-