public enum AutoIndexMode extends Enum<AutoIndexMode>
| Enum Constant and Description |
|---|
ASSERT
Removes all indexes and constraints on startup then creates all indexes and constraints defined in metadata.
|
DUMP
Runs validate then creates a file (in same dir where launched) with the cypher used to build indexes and constraints.
|
NONE
No indexing will be performed.
|
UPDATE
Creates all missing indexes and constraints.
|
VALIDATE
Ensures that all constraints and indexes exist on startup or will throw a Runtime exception.
|
| Modifier and Type | Method and Description |
|---|---|
static AutoIndexMode |
fromString(String name)
Parses an option name into the Enumeration type it represents.
|
String |
getName() |
static AutoIndexMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AutoIndexMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutoIndexMode NONE
public static final AutoIndexMode ASSERT
public static final AutoIndexMode UPDATE
If there is an index in the database and constraint in the metadata the index is dropped and constraint created. (and vise versa).
Other indexes and constraints are left untouched.
NOTE: When a field with index or constraint is renamed new index or constraint will be created. Existing for the old name will be left untouched.
public static final AutoIndexMode VALIDATE
public static final AutoIndexMode DUMP
public static AutoIndexMode[] values()
for (AutoIndexMode c : AutoIndexMode.values()) System.out.println(c);
public static AutoIndexMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static AutoIndexMode fromString(String name)
name - The lowercase name to parse.AutoIndexMode this name represents.public String getName()
Copyright © 2015–2023 Neo Technology, Inc.. All rights reserved.