public static class IndexPopulator.Adapter extends Object implements IndexPopulator
IndexPopulator.Adapter| Constructor and Description |
|---|
IndexPopulator.Adapter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void create()
throws IOException
IndexPopulatorcreate in interface IndexPopulatorIOExceptionpublic void drop()
throws IOException
IndexPopulatordrop in interface IndexPopulatorIOExceptionpublic void add(long nodeId,
Object propertyValue)
throws IndexEntryConflictException,
IOException
IndexPopulatoradd in interface IndexPopulatornodeId - node id to index.propertyValue - property value for the entry to index.IndexEntryConflictExceptionIOExceptionpublic void update(Iterable<NodePropertyUpdate> updates) throws IndexEntryConflictException
IndexPopulatorupdate in interface IndexPopulatorIndexEntryConflictExceptionpublic void close(boolean populationCompletedSuccessfully)
throws IOException
IndexPopulatorpopulationCompletedSuccessfully 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.close in interface IndexPopulatorIOExceptionCopyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.