|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.metadata.index.SimpleIndexUtil
public class SimpleIndexUtil
IndexUtil
Nested Class Summary | |
---|---|
static interface |
SimpleIndexUtil.ProgressMonitor
|
Field Summary | |
---|---|
static boolean |
CASE_SENSITIVE_INDEX_FILE_NAMES
|
Constructor Summary | |
---|---|
SimpleIndexUtil()
|
Method Summary | |
---|---|
static org.teiid.internal.core.index.Index[] |
getIndexes(java.lang.String indexName,
IndexMetadataStore selector)
Return an array of indexes given a indexName. |
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. |
static java.lang.String |
getIndexFilePath(java.lang.String indexDirectoryPath,
java.lang.String indexFileName)
|
static java.lang.String |
getPrefixPattern(char recordType,
java.lang.String uuid)
Return the prefix match string that could be used to exactly match a fully qualified entity name in an index record. |
static java.lang.String |
getRecordTypeForIndexFileName(java.lang.String indexName)
Return the name of the index file to use for the specified record type, applies only for sever and vdb index files. |
static boolean |
indexFileExists(java.io.File indexFile)
Return true if the specifed index file exists on the file system otherwise return false. |
static boolean |
indexFileExists(java.lang.String indexFilePath)
Return true if the specifed index file exists on the file system otherwise return false. |
static boolean |
isIndexFile(java.io.File indexFile)
Return true if the specifed index file represents a index file on the file system otherwise return false. |
static boolean |
isIndexFile(java.lang.String indexFileName)
Return true if the specifed index file represents a index file on the file system otherwise return false. |
static boolean |
isModelIndex(java.lang.String indexFileName)
Return true if the specifed index file represents a known index file on the file system otherwise return false. |
static IEntryResult[] |
queryIndex(org.teiid.internal.core.index.Index[] indexes,
char[] pattern,
boolean isPrefix,
boolean returnFirstMatch)
Return all index file records that match the specified record prefix or pattern. |
static IEntryResult[] |
queryIndex(org.teiid.internal.core.index.Index[] indexes,
char[] pattern,
char fieldDelimiter)
Return all index file records that match the specified record pattern. |
static IEntryResult[] |
queryIndex(SimpleIndexUtil.ProgressMonitor monitor,
org.teiid.internal.core.index.Index[] indexes,
char[] pattern,
boolean isPrefix,
boolean returnFirstMatch)
Return all index file records that match the specified record prefix or pattern. |
static IEntryResult[] |
queryIndex(SimpleIndexUtil.ProgressMonitor monitor,
org.teiid.internal.core.index.Index[] indexes,
char[] pattern,
boolean isPrefix,
boolean isCaseSensitive,
boolean returnFirstMatch)
Return all index file records that match the specified record prefix or pattern. |
static IEntryResult[] |
queryIndex(SimpleIndexUtil.ProgressMonitor monitor,
org.teiid.internal.core.index.Index[] indexes,
java.util.Collection patterns,
boolean isPrefix,
boolean isCaseSensitive,
boolean returnFirstMatch)
Return all index file records that match the specified record prefix or pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean CASE_SENSITIVE_INDEX_FILE_NAMES
Constructor Detail |
---|
public SimpleIndexUtil()
Method Detail |
---|
public static java.lang.String getIndexFilePath(java.lang.String indexDirectoryPath, java.lang.String indexFileName)
public static IEntryResult[] queryIndex(org.teiid.internal.core.index.Index[] indexes, char[] pattern, char fieldDelimiter) throws MetaMatrixCoreException
indexes
- the array of MtkIndex instances to querypattern
- fieldDelimiter
-
QueryMetadataException
MetaMatrixCoreException
public static IEntryResult[] queryIndex(org.teiid.internal.core.index.Index[] indexes, char[] pattern, boolean isPrefix, boolean returnFirstMatch) throws MetaMatrixCoreException
indexes
- the array of MtkIndex instances to querypattern
-
MetamatrixCoreException
MetaMatrixCoreException
public static IEntryResult[] queryIndex(SimpleIndexUtil.ProgressMonitor monitor, org.teiid.internal.core.index.Index[] indexes, char[] pattern, boolean isPrefix, boolean returnFirstMatch) throws MetaMatrixCoreException
monitor
- an optional ProgressMonitorindexes
- the array of MtkIndex instances to querypattern
-
MetamatrixCoreException
MetaMatrixCoreException
public static IEntryResult[] queryIndex(SimpleIndexUtil.ProgressMonitor monitor, org.teiid.internal.core.index.Index[] indexes, char[] pattern, boolean isPrefix, boolean isCaseSensitive, boolean returnFirstMatch) throws MetaMatrixCoreException
monitor
- an optional ProgressMonitorindexes
- the array of MtkIndex instances to querypattern
-
MetamatrixCoreException
MetaMatrixCoreException
public static IEntryResult[] queryIndex(SimpleIndexUtil.ProgressMonitor monitor, org.teiid.internal.core.index.Index[] indexes, java.util.Collection patterns, boolean isPrefix, boolean isCaseSensitive, boolean returnFirstMatch) throws MetaMatrixCoreException
monitor
- an optional ProgressMonitorindexes
- the array of MtkIndex instances to querypattern
-
MetamatrixCoreException
MetaMatrixCoreException
public static boolean indexFileExists(java.lang.String indexFilePath)
public static boolean indexFileExists(java.io.File indexFile)
public static boolean isModelIndex(java.lang.String indexFileName)
public static boolean isIndexFile(java.lang.String indexFileName)
public static boolean isIndexFile(java.io.File indexFile)
public static org.teiid.internal.core.index.Index[] getIndexes(java.lang.String indexName, IndexMetadataStore selector)
indexName
- The shortName of the index fileselector
- The indexSelector to lookup indexes
MetamatrixCoreException
- If there is an error looking up indexespublic static java.lang.String getIndexFileNameForRecordType(char recordType)
recordType
-
public static java.lang.String getRecordTypeForIndexFileName(java.lang.String indexName)
recordType
-
public static java.lang.String getPrefixPattern(char recordType, java.lang.String uuid)
name
- The fully qualified name for which the prefix match
string is to be constructed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |