| | |
| | | public final void open(WriteableTransaction txn) throws StorageRuntimeException |
| | | { |
| | | txn.openTree(name); |
| | | doOpen(txn); |
| | | open0(txn); |
| | | } |
| | | |
| | | /** |
| | | * Override in order to perform any additional initialization after the index has opened. |
| | | */ |
| | | void doOpen(WriteableTransaction txn) throws StorageRuntimeException |
| | | void open0(ReadableTransaction txn) throws StorageRuntimeException |
| | | { |
| | | // Do nothing by default. |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | void doOpen(final WriteableTransaction txn) throws StorageRuntimeException |
| | | void open0(final ReadableTransaction txn) throws StorageRuntimeException |
| | | { |
| | | count.set((int) txn.getRecordCount(getName())); |
| | | } |