@AutoService(value=IndexMaintainerFactory.class) @API(value=EXPERIMENTAL) public class TextIndexMaintainerFactory extends Object implements IndexMaintainerFactory
TextIndexMaintainer
s, that is, of index maintainers for the full text
index type.Constructor and Description |
---|
TextIndexMaintainerFactory() |
Modifier and Type | Method and Description |
---|---|
IndexMaintainer |
getIndexMaintainer(IndexMaintainerState state)
Get an index maintainer for the given record store and index meta-data.
|
Iterable<String> |
getIndexTypes()
A list containing only the name of the "" index type.
|
IndexValidator |
getIndexValidator(Index index)
Validates that the index provided is valid for text indexes.
|
@Nonnull public Iterable<String> getIndexTypes()
getIndexTypes
in interface IndexMaintainerFactory
@Nonnull public IndexValidator getIndexValidator(Index index)
VersionKeyExpression.VERSION
expression in its root expression.string
(possibly with grouping columns
before the tokenized text column) and is not repeated.getIndexValidator
in interface IndexMaintainerFactory
index
- the index to validateKeyExpression.InvalidExpressionException
- if the expression does not contain a string as its first ungrouped columnMetaDataException
- if the tokenizer is not defined, if the tokenizer version
is out of range, or if the index is marked as unique@Nonnull public IndexMaintainer getIndexMaintainer(IndexMaintainerState state)
IndexMaintainerFactory
getIndexMaintainer
in interface IndexMaintainerFactory
state
- the state of the new index maintainer