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
IOException
public boolean isEmpty()
public IndexItem getIndex(long offset) throws IOException
IOException
public IndexItem refreshIndex(IndexItem item) throws IOException
IOException
public void freeIndex(IndexItem item) throws IOException
IOException
public void storeIndex(IndexItem index) throws IOException
IOException
public void updateIndexes(IndexItem index) throws IOException
IOException
public void redo(RedoStoreIndexItem redo) throws IOException
IOException
public IndexItem createNewIndex() throws IOException
IOException
public void close() throws IOException
IOException
public void force() throws IOException
IOException
public boolean delete() throws IOException
IOException
public final long size()
public void setLength(long value)
public FileLock getLock() throws IOException
IOException
protected void initialize() throws IOException
IOException
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.