public static class IndexAccessor.Adapter extends Object implements IndexAccessor
IndexAccessor.Adapter| Constructor and Description |
|---|
IndexAccessor.Adapter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void drop()
IndexAccessordrop in interface IndexAccessorpublic void updateAndCommit(Iterable<NodePropertyUpdate> updates) throws IndexEntryConflictException, IOException
IndexAccessorreaders created after this update.updateAndCommit in interface IndexAccessorIndexEntryConflictExceptionIOExceptionpublic void recover(Iterable<NodePropertyUpdate> updates) throws IOException
IndexAccessorIndexAccessor.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.recover in interface IndexAccessorIOExceptionpublic void force()
IndexAccessorforce in interface IndexAccessorpublic void close()
IndexAccessorclose in interface IndexAccessorpublic IndexReader newReader()
newReader in interface IndexAccessorIndexReader responsible for looking up results in the index. The returned
reader must honor repeatable reads.Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.