IndexDefinition (Neo4j Community 2.1.0-M01 API)
Date: 2014-02-20

org.neo4j.graphdb.schema

## Interface IndexDefinition

-     public interface IndexDefinition

  Definition for an index NOTE: This is part of the index API introduced in Neo4j 2.0. The legacy index API lives in `IndexManager`.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `drop()` Drops this index.
    `Label` | `getLabel()`
    `Iterable<String>` | `getPropertyKeys()`
    `boolean` | `isConstraintIndex()`

- - ### Method Detail

    - #### getLabel

          Label getLabel()

      Returns:
        the `label` this index definition is associated with.

    - #### getPropertyKeys

          Iterable<String> getPropertyKeys()

      Returns:
        the property keys this index was created on.

    - #### drop

          void drop()

      Drops this index. `Schema.getIndexes(Label)` will no longer include this index and any related background jobs and files will be stopped and removed.

    - #### isConstraintIndex

          boolean isConstraintIndex()

      Returns:
        `true` if this index is created as a side effect of the creation of a uniqueness constraint.

Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.