/* We start by reading the information in the root node */
// FIXME using CoreNode for now, we'll have to redo this part to handle
// different node types
- CoreNode currentNode = sht.getLatestBranch().get(0);
+ CoreNode currentNode = sht.getRootNode();
currentNode.writeInfoFromNode(stateInfo, t);
/* Then we follow the branch down in the relevant children */
// FIXME using CoreNode for now, we'll have to redo this part to handle
// different node types
- CoreNode currentNode = sht.getLatestBranch().get(0);
+ CoreNode currentNode = sht.getRootNode();
HTInterval interval = currentNode.getRelevantInterval(key, t);
try {
return sht.getFileSize();
}
- /**
- * Return the current depth of the tree, ie the number of node levels.
- *
- * @return The tree depth
- */
- public int getTreeDepth() {
- return sht.getLatestBranch().size();
- }
-
/**
* Return the average node usage as a percentage (between 0 and 100)
*