|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexAccessor
Used for online operation of an index.
Nested Class Summary | |
---|---|
static class |
IndexAccessor.Adapter
|
Method Summary | |
---|---|
void |
close()
Closes this index accessor. |
void |
drop()
Deletes this index as well as closes all used external resources. |
void |
force()
Forces this index to disk. |
IndexReader |
newReader()
|
void |
recover(Iterable<NodePropertyUpdate> updates)
Apply a set of changes to this index. |
void |
updateAndCommit(Iterable<NodePropertyUpdate> updates)
Apply a set of changes to this index. |
Method Detail |
---|
void drop() throws IOException
IOException
- if unable to drop index.void updateAndCommit(Iterable<NodePropertyUpdate> updates) throws IOException
readers
created after this update.
IOException
void recover(Iterable<NodePropertyUpdate> updates) throws IOException
updateAndCommit(Iterable)
during recovery of the database when starting up after
a crash or similar. Updates given here may have already been applied to this index, so
additional checks must be in place so that data doesn't get duplicated, but is idempotent.
IOException
void force() throws IOException
IOException
- if there was a problem forcing the state to persistent storage.void close() throws IOException
IOException
- if unable to close index.IndexReader newReader()
IndexReader
responsible for looking up results in the index. The returned
reader must honor repeatable reads.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |