public class SimplePivotHeaderTree extends Object implements PivotHeaderTree
| Constructor and Description |
|---|
SimplePivotHeaderTree(PivotField[] fields)
Construct an empty tree
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDepth()
Returns the depth of the tree.
|
SimplePivotHeaderNode |
getRoot()
Returns the root of the tree.
|
void |
sort()
Sort the tree nodes by node keys, using natural ordering.
|
void |
sort(Comparator<PivotHeaderNode> comparator)
Sort the tree nodes by node keys, using given comparator
|
public SimplePivotHeaderTree(PivotField[] fields)
fields - the fields of each levelpublic void sort()
public void sort(Comparator<PivotHeaderNode> comparator)
public int getDepth()
PivotHeaderTreegetDepth in interface PivotHeaderTreepublic SimplePivotHeaderNode getRoot()
PivotHeaderTreegetRoot in interface PivotHeaderTreePivotHeaderNodeCopyright © 2023. All rights reserved.