synchronized public int getMaxLeafDepth(Transaction tx) throws IOException { return getRoot(tx).getMaxLeafDepth(tx, 0); }
public int getMaxLeafDepth(Transaction tx, int depth) throws IOException { depth++; if( isBranch() ) { int v = 0; for(int i=0 ; i < children.length; i++) { v = Math.max(v, getChild(tx, i).getMaxLeafDepth(tx, depth)); } depth = v; } return depth; }
synchronized public int getMaxLeafDepth(Transaction tx) throws IOException { return getRoot(tx).getMaxLeafDepth(tx, 0); }
synchronized public int getMaxLeafDepth(Transaction tx) throws IOException { return getRoot(tx).getMaxLeafDepth(tx, 0); }
synchronized public int getMaxLeafDepth(Transaction tx) throws IOException { return getRoot(tx).getMaxLeafDepth(tx, 0); }
public int getMaxLeafDepth(Transaction tx, int depth) throws IOException { depth++; if( isBranch() ) { int v = 0; for(int i=0 ; i < children.length; i++) { v = Math.max(v, getChild(tx, i).getMaxLeafDepth(tx, depth)); } depth = v; } return depth; }
public int getMaxLeafDepth(Transaction tx, int depth) throws IOException { depth++; if( isBranch() ) { int v = 0; for(int i=0 ; i < children.length; i++) { v = Math.max(v, getChild(tx, i).getMaxLeafDepth(tx, depth)); } depth = v; } return depth; }
public int getMaxLeafDepth(Transaction tx, int depth) throws IOException { depth++; if( isBranch() ) { int v = 0; for(int i=0 ; i < children.length; i++) { v = Math.max(v, getChild(tx, i).getMaxLeafDepth(tx, depth)); } depth = v; } return depth; }