@API(value=MAINTAINED) public class IndexOptions extends Object
Index
.
An option key is just a string, so that new ones can be defined outside the Record Layer core.Index.getOptions()
Modifier and Type | Field and Description |
---|---|
static String |
ALLOWED_FOR_QUERY_OPTION
If
"false" , the index is not considered for use in queries, even if enabled, unless requested explicitly. |
static Map<String,String> |
EMPTY_OPTIONS
No options.
|
static Map<String,String> |
NOT_ALLOWED_FOR_QUERY_OPTIONS
Options to set to disable
ALLOWED_FOR_QUERY_OPTION . |
static String |
RANK_NLEVELS
The number of levels in the
IndexTypes.RANK skip list RankedSet . |
static String |
TEXT_ADD_AGGRESSIVE_CONFLICT_RANGES_OPTION
If
"true" , a IndexTypes.TEXT index will add a conflict range for the whole index to keep the commit size down at the expense of more conflicts. |
static String |
TEXT_OMIT_POSITIONS_OPTION
If
"true" , a IndexTypes.TEXT index will not store position numbers for tokens. |
static String |
TEXT_TOKENIZER_NAME_OPTION
The name of the
TextTokenizer to use with a IndexTypes.TEXT index. |
static String |
TEXT_TOKENIZER_VERSION_OPTION
The version of the
TextTokenizer to use with a IndexTypes.TEXT index. |
static String |
UNIQUE_OPTION
If
"true" , index throws RecordIndexUniquenessViolation on attempts to store duplicate values. |
static Map<String,String> |
UNIQUE_OPTIONS
Options to set to enable
UNIQUE_OPTION . |
public static final Map<String,String> EMPTY_OPTIONS
Index
.public static final String UNIQUE_OPTION
"true"
, index throws RecordIndexUniquenessViolation
on attempts to store duplicate values.public static final Map<String,String> UNIQUE_OPTIONS
UNIQUE_OPTION
.public static final String ALLOWED_FOR_QUERY_OPTION
"false"
, the index is not considered for use in queries, even if enabled, unless requested explicitly.public static final Map<String,String> NOT_ALLOWED_FOR_QUERY_OPTIONS
ALLOWED_FOR_QUERY_OPTION
.public static final String TEXT_TOKENIZER_NAME_OPTION
TextTokenizer
to use with a IndexTypes.TEXT
index.public static final String TEXT_TOKENIZER_VERSION_OPTION
TextTokenizer
to use with a IndexTypes.TEXT
index.@API(value=EXPERIMENTAL) public static final String TEXT_ADD_AGGRESSIVE_CONFLICT_RANGES_OPTION
"true"
, a IndexTypes.TEXT
index will add a conflict range for the whole index to keep the commit size down at the expense of more conflicts.public static final String TEXT_OMIT_POSITIONS_OPTION
"true"
, a IndexTypes.TEXT
index will not store position numbers for tokens.
It will only be possible to determine that an indexed field contains the token someplace.public static final String RANK_NLEVELS
IndexTypes.RANK
skip list RankedSet
.
The default is RankedSet.DEFAULT_LEVELS
= 6.