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

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

public static class IndexPopulator.Adapter
extends Object
implements IndexPopulator


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.neo4j.kernel.api.index.IndexPopulator
IndexPopulator.Adapter
 
Constructor Summary
IndexPopulator.Adapter()
           
 
Method Summary
 void add(long nodeId, Object propertyValue)
          Called when initially populating an index over existing data.
 void close(boolean populationCompletedSuccessfully)
          Close this populator and releases any resources related to it.
 void create()
          Remove all data in the index and paves the way for populating an index.
 void drop()
          Closes and deletes this index.
 void update(Iterable<NodePropertyUpdate> updates)
          Apply a set of changes to this index, generally this will be a set of changes from a transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexPopulator.Adapter

public IndexPopulator.Adapter()
Method Detail

create

public void create()
            throws IOException
Description copied from interface: IndexPopulator
Remove all data in the index and paves the way for populating an index.

Specified by:
create in interface IndexPopulator
Throws:
IOException

drop

public void drop()
          throws IOException
Description copied from interface: IndexPopulator
Closes and deletes this index.

Specified by:
drop in interface IndexPopulator
Throws:
IOException

add

public void add(long nodeId,
                Object propertyValue)
Description copied from interface: IndexPopulator
Called when initially populating an index over existing data. Guaranteed to be called by the same thread every time. All data coming in here is guaranteed to not have been added to this index previously, by any method.

Specified by:
add in interface IndexPopulator
Parameters:
nodeId - node id to index.
propertyValue - property value for the entry to index.

update

public void update(Iterable<NodePropertyUpdate> updates)
Description copied from interface: IndexPopulator
Apply a set of changes to this index, generally this will be a set of changes from a transaction.

Specified by:
update in interface IndexPopulator

close

public void close(boolean populationCompletedSuccessfully)
           throws IOException
Description copied from interface: IndexPopulator
Close this populator and releases any resources related to it. If populationCompletedSuccessfully is true then it must mark this index as InternalIndexState.ONLINE so that future invocations of its parent SchemaIndexProvider.getInitialState(long) also returns InternalIndexState.ONLINE.

Specified by:
close in interface IndexPopulator
Throws:
IOException


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.