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()
PivotHeaderTree
getDepth
in interface PivotHeaderTree
public SimplePivotHeaderNode getRoot()
PivotHeaderTree
getRoot
in interface PivotHeaderTree
PivotHeaderNode
Copyright © 2017. All rights reserved.