19071908190919101911191219131914191519161917
{ BlockStore store = BlockStore.create(path); Block block = store.allocateIndexBlock(); long blockId = block.getBlockId(); block.free(); return new BTree(store, blockId, keySize, new StringKeyCompare()); } private String debugId(long blockId)
19231924192519261927192819291930193119321933
{ Block rootBlock = _rootBlock; _rootBlock = null; if (rootBlock != null) rootBlock.free(); } public String toString() { return (getClass().getSimpleName()
171172173174175176177178179180181
Block block = _block; _block = null; _buffer = null; if (block != null) { block.free(); } _blockId = 0; _rowOffset = Integer.MAX_VALUE / 2; _queryContext = null;
261262263264265266267268269270271
Block block = _block; _block = null; _buffer = null; if (block != null) { block.free(); } _blockId = _table.firstRowBlock(_blockId + Table.BLOCK_SIZE); if (_blockId < 0) {
312313314315316317318319320321322
Block block = _block; _block = null; _buffer = null; if (block != null) { block.free(); } _block = _xa.readBlock(_table, _blockId); _buffer = _block.getBuffer(); }
333334335336337338339340341342343
Block block = _block; _block = null; _buffer = null; if (block != null) block.free(); _rowOffset = 0; _buffer = _nullBuffer; }
463464465466467468469470
{ Block block = _block; _block = null; if (block != null) block.free(); } }
403404405406407408409410411412413
if (keyCompare == null) continue; Block rootBlock = allocateIndexBlock(); long rootBlockId = rootBlock.getBlockId(); rootBlock.free(); BTree btree = new BTree(this, rootBlockId, column.getLength(), keyCompare); column.setIndex(btree);
441442443444445446447448449450451
} block.setDirty(0, BLOCK_SIZE); } } finally { block.free(); } } long blockAddr = 0;
743744745746747748749750751752753
return blockIdToAddress(blockId, rowOffset); } Block freeBlock = block; block = null; freeBlock.free(); } } finally { if (block != null) block.free(); }