Class TextIndexMaintainerFactory

    • Constructor Detail

      • TextIndexMaintainerFactory

        public TextIndexMaintainerFactory()
    • Method Detail

      • getIndexTypes

        @Nonnull
        public Iterable<String> getIndexTypes()
        A list containing only the name of the ""text"" index type. The maintainers produced by this factory only support that one type.
        Specified by:
        getIndexTypes in interface IndexMaintainerFactory
        Returns:
        a list containing only the supported index type
      • getIndexValidator

        @Nonnull
        public IndexValidator getIndexValidator​(Index index)
        Validates that the index provided is valid for text indexes. This means that the index must:
        • Not be a unique index.
        • Not include a VersionKeyExpression.VERSION expression in its root expression.
        • Have a key expression whose first column is of type string (possibly with grouping columns before the tokenized text column) and is not repeated.
        • Specify a valid tokenizer and tokenizer version through the index options (possibly using the defaults).
        • Not define a value expression.
        Specified by:
        getIndexValidator in interface IndexMaintainerFactory
        Parameters:
        index - the index to validate
        Returns:
        a validator to run against the index
        Throws:
        KeyExpression.InvalidExpressionException - if the expression does not contain a string as its first ungrouped column
        MetaDataException - if the tokenizer is not defined, if the tokenizer version is out of range, or if the index is marked as unique