public class BTreeStatistics extends Object implements IBTreeStatistics, Serializable
| Constructor and Description |
|---|
BTreeStatistics(AbstractBTree btree) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBranchingFactor()
The branching factor for the btree.
|
long |
getEntryCount()
The #of entries (aka tuples) in the
AbstractBTree. |
int |
getHeight()
The height of the btree.
|
long |
getLeafCount()
The #of leaf nodes in the
AbstractBTree. |
long |
getNodeCount()
The #of non-leaf nodes in the
AbstractBTree. |
IBTreeUtilizationReport |
getUtilization()
Computes and returns the utilization of the tree.
|
String |
toString()
Human readable representation.
|
public BTreeStatistics(AbstractBTree btree)
public int getBranchingFactor()
IBTreeStatisticsgetBranchingFactor in interface IBTreeStatisticspublic int getHeight()
IBTreeStatisticsheight := 0. A btree with a
root node and one level of leaves under it has height := 1.
Note that all leaves of a btree are at the same height (this is what is
means for the btree to be "balanced"). Also note that the height only
changes when we split or join the root node (a btree maintains balance by
growing and shrinking in levels from the top rather than the leaves).getHeight in interface IBTreeStatisticspublic long getNodeCount()
IBTreeStatisticsAbstractBTree. This is zero (0)
for a new btree.getNodeCount in interface IBTreeStatisticspublic long getLeafCount()
IBTreeStatisticsAbstractBTree. This is one (1) for a
new btree.getLeafCount in interface IBTreeStatisticspublic long getEntryCount()
IBTreeStatisticsAbstractBTree. This is zero
(0) for a new B+Tree. When the B+Tree supports delete markers, this value
also includes tuples which have been marked as deleted.getEntryCount in interface IBTreeStatisticspublic IBTreeUtilizationReport getUtilization()
IBTreeStatisticsgetUtilization in interface IBTreeStatisticsCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.