public enum Mapping extends Enum<Mapping>
TitanManagement.addIndexKey(TitanGraphIndex, com.thinkaurelius.titan.core.PropertyKey, Parameter[]).
This applies mostly to string data types of keys, where the mapping specifies whether the string value is tokenized
(TEXT) or indexed as a whole (STRING), or both (TEXTSTRING).| Enum Constant and Description |
|---|
DEFAULT |
STRING |
TEXT |
TEXTSTRING |
| Modifier and Type | Method and Description |
|---|---|
Parameter |
asParameter()
Returns the mapping as a parameter so that it can be passed to
TitanManagement.addIndexKey(TitanGraphIndex, com.thinkaurelius.titan.core.PropertyKey, Parameter[]) |
static Mapping |
getMapping(KeyInformation information) |
static Mapping |
getMapping(String store,
String key,
KeyInformation.IndexRetriever informations) |
static Mapping |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mapping[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mapping DEFAULT
public static final Mapping TEXT
public static final Mapping STRING
public static final Mapping TEXTSTRING
public static Mapping[] values()
for (Mapping c : Mapping.values()) System.out.println(c);
public static Mapping 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 Parameter asParameter()
TitanManagement.addIndexKey(TitanGraphIndex, com.thinkaurelius.titan.core.PropertyKey, Parameter[])public static Mapping getMapping(KeyInformation information)
public static Mapping getMapping(String store, String key, KeyInformation.IndexRetriever informations)
Copyright © 2012–2015. All rights reserved.