|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Schema
Interface for managing the schema of your graph database. This currently includes the new indexing support, added in Neo4j 2.0, please see the Neo4j manual for details.
Nested Class Summary | |
---|---|
static class |
Schema.IndexState
The states that an index can be in. |
Method Summary | |
---|---|
void |
awaitIndexOnline(IndexDefinition index,
long duration,
TimeUnit unit)
Wait until an index comes online |
ResourceIterable<IndexDefinition> |
getIndexes()
|
ResourceIterable<IndexDefinition> |
getIndexes(Label label)
|
Schema.IndexState |
getIndexState(IndexDefinition index)
Poll the database for the state of a given index. |
IndexCreator |
indexCreator(Label label)
Returns an IndexCreator where details about the index to create can be
specified. |
Method Detail |
---|
IndexCreator indexCreator(Label label)
IndexCreator
where details about the index to create can be
specified. When all details have been entered create
must be called for it to actually be created.
Creating an index enables indexing for nodes with the specified label. The index will
have the details supplied to the returned index creator
.
All existing and all future nodes matching the index definition will be indexed,
speeding up future operations.
label
- label
on nodes to be indexed
IndexCreator
capable of providing details for, as well as creating
an index for the given label
.ResourceIterable<IndexDefinition> getIndexes(Label label)
label
- the Label
to get indexes
for.
indexes
attached to the given label
.ResourceIterable<IndexDefinition> getIndexes()
indexes
in this database.Schema.IndexState getIndexState(IndexDefinition index)
index
- the index that we want to poll state for
Schema.IndexState
of the indexvoid awaitIndexOnline(IndexDefinition index, long duration, TimeUnit unit)
index
- the index that we want to wait forduration
- duration to wait for the index to come onlineunit
- TimeUnit of duration
IllegalStateException
- if the index did not enter the ONLINE state within the given duration or
if the index entered the FAILED state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |