Class SimpleIndexUtil


  • public class SimpleIndexUtil
    extends Object
    IndexUtil
    • Field Detail

      • CASE_SENSITIVE_INDEX_FILE_NAMES

        public static final boolean CASE_SENSITIVE_INDEX_FILE_NAMES
        See Also:
        Constant Field Values
    • Constructor Detail

      • SimpleIndexUtil

        public SimpleIndexUtil()
    • Method Detail

      • queryIndex

        public static IEntryResult[] queryIndex​(Index[] indexes,
                                                char[] pattern,
                                                boolean isPrefix,
                                                boolean isCaseSensitive,
                                                boolean returnFirstMatch)
                                         throws TeiidException
        Return all index file records that match the specified record prefix or pattern. The pattern can be constructed from any combination of characters including the multiple character wildcard '*' and single character wildcard '?'. The prefix may be constructed from any combination of characters excluding the wildcard characters. The prefix specifies a fixed number of characters that the index record must start with.
        Parameters:
        indexes - the array of MtkIndex instances to query
        pattern -
        Returns:
        results
        Throws:
        TeiidException