public enum Mapping extends Enum<Mapping>
JanusGraphManagement.addIndexKey(JanusGraphIndex, org.janusgraph.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 |
|---|
BKD |
DEFAULT |
PREFIX_TREE |
STRING |
TEXT |
TEXTSTRING |
| Modifier and Type | Method and Description |
|---|---|
Parameter |
asParameter()
Returns the mapping as a parameter so that it can be passed to
JanusGraphManagement.addIndexKey(JanusGraphIndex, org.janusgraph.core.PropertyKey, Parameter[]) |
static Mapping |
getMapping(KeyInformation information) |
static Mapping |
getMapping(String store,
String key,
KeyInformation.IndexRetriever information) |
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 final Mapping PREFIX_TREE
public static final Mapping BKD
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()
JanusGraphManagement.addIndexKey(JanusGraphIndex, org.janusgraph.core.PropertyKey, Parameter[])public static Mapping getMapping(KeyInformation information)
public static Mapping getMapping(String store, String key, KeyInformation.IndexRetriever information)
Copyright © 2012–2023. All rights reserved.