public interface IndexPopulator
| Modifier and Type | Interface and Description |
|---|---|
static class |
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 |
markAsFailed(String failure)
Called then a population failed.
|
void |
update(Iterable<NodePropertyUpdate> updates)
Apply a set of changes to this index, generally this will be a set of changes from a transaction.
|
void create()
throws IOException
IOExceptionvoid drop()
throws IOException
IOExceptionvoid add(long nodeId,
Object propertyValue)
throws IndexEntryConflictException,
IOException
nodeId - node id to index.propertyValue - property value for the entry to index.IndexEntryConflictExceptionIOExceptionvoid update(Iterable<NodePropertyUpdate> updates) throws IndexEntryConflictException, IOException
void close(boolean populationCompletedSuccessfully)
throws IOException
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.IOExceptionvoid markAsFailed(String failure) throws IOException
SchemaIndexProvider.getPopulationFailure(long). Called before close(boolean)
if there was a failure during population.failure - the description of the failure.IOException - if marking failed.Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.