@API(value=MAINTAINED) public class IndexTypes extends Object
Index
is just a string, so that new ones can be defined outside the Record Layer core.IndexMaintainerRegistry
Modifier and Type | Field and Description |
---|---|
static String |
COUNT
A count of the number of indexed entries.
|
static String |
COUNT_NOT_NULL
A count of the number of non-null values for a field.
|
static String |
COUNT_UPDATES
A count of the number of times that any indexed record has been updated.
|
static String |
MAX_EVER
Deprecated.
use
MAX_EVER_LONG for compatibility with existing data or MAX_EVER_TUPLE for more flexibility |
static String |
MAX_EVER_LONG
An index remembering the smallest nonnegative integer ever stored.
|
static String |
MAX_EVER_TUPLE
An index remembering the greatest value(s) ever stored.
|
static String |
MAX_EVER_VERSION
An index remembering the maximum ever value stored where one column is the
record version.
|
static String |
MIN_EVER
Deprecated.
use
MIN_EVER_LONG for compatibility with existing data or MIN_EVER_TUPLE for more flexibility |
static String |
MIN_EVER_LONG
An index remembering the smallest nonnegative integer ever stored.
|
static String |
MIN_EVER_TUPLE
An index remembering the least value(s) ever stored.
|
static String |
RANK
A ranked set index, allowing efficient rank and select operations.
|
static String |
SUM
A total of a long-valued field.
|
static String |
TEXT
An index on the tokens in a text field.
|
static String |
TIME_WINDOW_LEADERBOARD
An index with sliding time window leaderboards.
|
static String |
VALUE
A normal index on field values.
|
static String |
VERSION
An index like
VALUE , but that allows one of the components to be VersionKeyExpression . |
public static final String VALUE
public static final String COUNT
public static final String COUNT_UPDATES
COUNT
, the count does not go down when records are deleted.public static final String COUNT_NOT_NULL
public static final String SUM
@Deprecated public static final String MIN_EVER
MIN_EVER_LONG
for compatibility with existing data or MIN_EVER_TUPLE
for more flexibilityMIN_EVER_LONG
.@Deprecated public static final String MAX_EVER
MAX_EVER_LONG
for compatibility with existing data or MAX_EVER_TUPLE
for more flexibilityMAX_EVER_LONG
.public static final String MIN_EVER_TUPLE
Tuple.compareTo(com.apple.foundationdb.tuple.Tuple)
.public static final String MAX_EVER_TUPLE
public static final String MIN_EVER_LONG
MIN_EVER_TUPLE
instead.public static final String MAX_EVER_LONG
MAX_EVER_TUPLE
instead.public static final String MAX_EVER_VERSION
This index is like MAX_EVER_TUPLE
except that the expression may contain exactly
one aggregated column that contains a
VersionKeyExpression
with one caveat. If a record is written with an incomplete version-stamp, then the aggregate index
entry is guaranteed to be updated to include the value from that record. For example, if there
are two columns defined as part of the index, and the first corresponds to an integer field while the
second corresponds to the record version, then the value stored by this index may go backwards
if, for example, one stores a record where the first field has value 2 and has an incomplete
version-stamp and then, in a separate transaction, one stores a record with the first field has
value 1 and has an incomplete version-stamp.
public static final String RANK
public static final String TIME_WINDOW_LEADERBOARD
public static final String VERSION
VALUE
, but that allows one of the components to be VersionKeyExpression
.public static final String TEXT