public enum IndexType extends Enum<IndexType>
There are two types of Secondary Indexes (2i) in Riak; "Integer" and
"Binary". The current server API distinguishes between them via a
suffix ("_int" and "_bin" respectively).
RiakIndex| Enum Constant and Description |
|---|
BIN
Encapsulates the
"_bin" suffix for Riak index names. |
BUCKET
Used for the special $bucket index
|
INT
Encapsulates the
"_int" suffix for Riak index names. |
KEY
Used for the special $key index
|
| Modifier and Type | Method and Description |
|---|---|
String |
suffix()
Returns the suffix for this type.
|
static IndexType |
typeFromFullname(String fullname)
Returns the index type from its fully qualified name
|
static IndexType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndexType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexType INT
"_int" suffix for Riak index names.public static final IndexType BIN
"_bin" suffix for Riak index names.public static final IndexType BUCKET
public static final IndexType KEY
public static IndexType[] values()
for (IndexType c : IndexType.values()) System.out.println(c);
public static IndexType 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 String suffix()
String containing the suffix for this index type.public static IndexType typeFromFullname(String fullname)
There are two
types of Secondary Indexes (2i) in Riak; "Integer" and "Binary". The
current server API distinguishes between them via a suffix (_int
and _bin respectively). This method takes a "fully qualified" 2i
name (e.g. "my_index_int") and returns an enum that represents the type.
fullname - a "fully qualified" 2i name ending with the suffix "_int"
or "_bin"IndexTypeIllegalArgumentException - if the supplied index name does not have
a valid suffix.Copyright © 2016. All rights reserved.