org.neo4j.kernel.api.index
Class IndexAccessor.Adapter

java.lang.Object
  extended by org.neo4j.kernel.api.index.IndexAccessor.Adapter
All Implemented Interfaces:
IndexAccessor
Enclosing interface:
IndexAccessor

public static class IndexAccessor.Adapter
extends Object
implements IndexAccessor


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.neo4j.kernel.api.index.IndexAccessor
IndexAccessor.Adapter
 
Constructor Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexAccessor.Adapter

public IndexAccessor.Adapter()
Method Detail

drop

public void drop()
Description copied from interface: IndexAccessor
Deletes this index as well as closes all used external resources. There will not be any interactions after this call.

Specified by:
drop in interface IndexAccessor

updateAndCommit

public void updateAndCommit(Iterable<NodePropertyUpdate> updates)
Description copied from interface: IndexAccessor
Apply a set of changes to this index. Updates must be visible in readers created after this update.

Specified by:
updateAndCommit in interface IndexAccessor

recover

public void recover(Iterable<NodePropertyUpdate> updates)
             throws IOException
Description copied from interface: IndexAccessor
Apply a set of changes to this index. This method will be called instead of IndexAccessor.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.

Specified by:
recover in interface IndexAccessor
Throws:
IOException

force

public void force()
Description copied from interface: IndexAccessor
Forces this index to disk. Called at certain points from within Neo4j for example when rotating the logical log. After completion of this call there cannot be any essential state that hasn't been forced to disk.

Specified by:
force in interface IndexAccessor

close

public void close()
Description copied from interface: IndexAccessor
Closes this index accessor. There will not be any interactions after this call. After completion of this call there cannot be any essential state that hasn't been forced to disk.

Specified by:
close in interface IndexAccessor

newReader

public IndexReader newReader()
Specified by:
newReader in interface IndexAccessor
Returns:
a new IndexReader 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.