org.teiid.metadata.index
Class SimpleIndexUtil
java.lang.Object
org.teiid.metadata.index.SimpleIndexUtil
public class SimpleIndexUtil
- extends java.lang.Object
IndexUtil
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CASE_SENSITIVE_INDEX_FILE_NAMES
public static final boolean CASE_SENSITIVE_INDEX_FILE_NAMES
- See Also:
- Constant Field Values
SimpleIndexUtil
public SimpleIndexUtil()
queryIndex
public static IEntryResult[] queryIndex(org.teiid.internal.core.index.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:
monitor - an optional ProgressMonitorindexes - the array of MtkIndex instances to querypattern -
- Returns:
- results
- Throws:
MetamatrixCoreException
TeiidException
getIndexes
public static org.teiid.internal.core.index.Index[] getIndexes(java.lang.String indexName,
org.teiid.internal.core.index.Index[] indexes)
- Return an array of indexes given a indexName.
- Parameters:
indexName - The shortName of the index fileselector - The indexSelector to lookup indexes
- Returns:
- An array of indexes, may be duplicates depending on index selector.
- Throws:
MetamatrixCoreException - If there is an error looking up indexes- Since:
- 4.2
getIndexFileNameForRecordType
public static java.lang.String getIndexFileNameForRecordType(char recordType)
- Return the name of the index file to use for the specified record type, applies only for sever and vdb
index files.
- Parameters:
recordType -
- Returns:
Copyright © 2011. All Rights Reserved.