public final class IndexManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME_PREFIX |
| Constructor and Description |
|---|
IndexManager(File directory,
String name,
String mode,
DataManager redoLog,
AtomicLong storeSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IndexItem |
createNewIndex() |
boolean |
delete() |
void |
force() |
void |
freeIndex(IndexItem item) |
IndexItem |
getIndex(long offset) |
FileLock |
getLock() |
protected void |
initialize() |
boolean |
isEmpty() |
void |
redo(RedoStoreIndexItem redo) |
IndexItem |
refreshIndex(IndexItem item) |
void |
setLength(long value) |
long |
size() |
void |
storeIndex(IndexItem index) |
String |
toString() |
void |
updateIndexes(IndexItem index) |
public static final String NAME_PREFIX
public IndexManager(File directory, String name, String mode, DataManager redoLog, AtomicLong storeSize) throws IOException
IOExceptionpublic boolean isEmpty()
public IndexItem getIndex(long offset) throws IOException
IOExceptionpublic IndexItem refreshIndex(IndexItem item) throws IOException
IOExceptionpublic void freeIndex(IndexItem item) throws IOException
IOExceptionpublic void storeIndex(IndexItem index) throws IOException
IOExceptionpublic void updateIndexes(IndexItem index) throws IOException
IOExceptionpublic void redo(RedoStoreIndexItem redo) throws IOException
IOExceptionpublic IndexItem createNewIndex() throws IOException
IOExceptionpublic void close() throws IOException
IOExceptionpublic void force() throws IOException
IOExceptionpublic boolean delete() throws IOException
IOExceptionpublic final long size()
public void setLength(long value)
public FileLock getLock() throws IOException
IOExceptionprotected void initialize() throws IOException
IOExceptionCopyright © 2005–2017. All rights reserved.