| | |
| | | */ |
| | | private boolean rebuildRunning; |
| | | |
| | | /** Thread local area to store per thread cursors. */ |
| | | private final ThreadLocal<Cursor> curLocal = new ThreadLocal<Cursor>(); |
| | | |
| | | /** |
| | | * Create a new index object. |
| | | * @param name The name of the index database within the entryContainer. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Close any cursors open against this index. |
| | | * |
| | | * @throws StorageRuntimeException If a database error occurs. |
| | | */ |
| | | public void closeCursor() throws StorageRuntimeException { |
| | | Cursor cursor = curLocal.get(); |
| | | if(cursor != null) { |
| | | cursor.close(); |
| | | curLocal.remove(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Update the index buffer for a deleted entry. |
| | | * |
| | | * @param buffer The index buffer to use to store the deleted keys |