avlFile = new AVLFile( writerObjectPool, fileName + ".sp_avl", PAYLOAD_SIZE );
/** * METHOD TO DO * * @param phaseNumber PARAMETER TO DO * @throws IOException EXCEPTION TO DO * @throws SimpleXAResourceException EXCEPTION TO DO */ public synchronized void clear( int phaseNumber ) throws IOException, SimpleXAResourceException { if (currentPhase != null) { throw new IllegalStateException( "StringPool already has a current phase." ); } openMetarootFile(true); synchronized (committedPhaseLock) { committedPhaseToken = new Phase().use(); } this.phaseNumber = phaseNumber; phaseIndex = 1; avlFile.clear(); gNodeToDataFile.clear(); for (int i = 0; i < NR_BLOCK_FILES; ++i) { blockFiles[i].clear(); } new Phase(); }
avlFile.force(); for (int i = 0; i < NR_BLOCK_FILES; ++i) { blockFiles[i].force();
} else { int li = AVLFile.leafIndex(findResult); findResult[li].insert(newNode, 1 - li);
} finally { if (findResult != null) { AVLFile.release(findResult);
} finally { if (findResult != null) { AVLFile.release(findResult);
highAVLNodeId = findResult[1] != null ? findResult[1].getId() : Block.INVALID_BLOCK_ID; AVLFile.release(findResult); } else { highAVLNodeId = Block.INVALID_BLOCK_ID;
AVLFile.release(findResult); } else { highAVLNodeId = Block.INVALID_BLOCK_ID;