Package org.teiid.metadata.index
Class SimpleIndexUtil
- java.lang.Object
-
- org.teiid.metadata.index.SimpleIndexUtil
-
public class SimpleIndexUtil extends Object
IndexUtil
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
CASE_SENSITIVE_INDEX_FILE_NAMES
-
Constructor Summary
Constructors Constructor Description SimpleIndexUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IEntryResult[]
queryIndex(Index[] indexes, char[] pattern, boolean isPrefix, boolean isCaseSensitive, boolean returnFirstMatch)
Return all index file records that match the specified record prefix or pattern.
-
-
-
Field Detail
-
CASE_SENSITIVE_INDEX_FILE_NAMES
public static final boolean CASE_SENSITIVE_INDEX_FILE_NAMES
- See Also:
- Constant Field Values
-
-
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 querypattern
-- Returns:
- results
- Throws:
TeiidException
-
-