Block block = blockFilePhase.allocateBlock(objectPool); try { block.put(0, data);
/** * Initialises a node on the given information. * * @param phase The phase that the node exists in. * @param objectPool The pool that the node will return to. * @throws IOException If an I/O error occurs. */ private void init( AVLFile.Phase phase, ObjectPool objectPool ) throws IOException { assert this.objectPool == null; this.phase = phase; parentNode = null; childIndex = 0; this.leftChildNode = null; this.rightChildNode = null; this.objectPool = objectPool; //X trace = new Throwable(); refCount = 1; writable = true; dirty = true; block = phase.getAVLBlockFilePhase().allocateBlock(objectPool); block.putLong(IDX_LEFT, NULL_NODE); block.putLong(IDX_RIGHT, NULL_NODE); block.putByte(IDX_BALANCE_B, (byte) 0); }