|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.metadata.runtime.impl.RecordFactory
public class RecordFactory
RuntimeAdapter
Field Summary | |
---|---|
static int |
ANNOTATION_TAGS_INDEX_VERSION
The version number that is associated with the change made to remove property value pairs from the annotation records any properties on annotations would now be indexed as part of the properties index. |
static int |
COLUMN_INPUT_PARAMETER_FLAG_INDEX_VERSION
The version number that is associated with the change made to add an input parameter flag on columns. |
static int |
COLUMN_NATIVE_TYPE_INDEX_VERSION
The version number that is associated with the change made to add native type property on columns. |
static int |
COLUMN_NULL_DISTINCT_INDEX_VERSION
The version number that is associated with the change made to add count of null and distinct values for columns on the column records 7/8/2005. |
static int |
CURRENT_INDEX_VERSION
The version number that is encoded with all newly created index records |
static int |
DELIMITER_INDEX_VERSION
The version number that is associated with the change made to change the list delimiter from com.metamatrix.modeler.core.index.IndexConstants.LIST_DELIMITER_OLD
to com.metamatrix.modeler.core.index.IndexConstants.LIST_DELIMITER and also the
property delimiter was changed from com.metamatrix.modeler.core.index.IndexConstants.PROP_DELIMITER_OLD
to com.metamatrix.modeler.core.index.IndexConstants.PROP_DELIMITER . |
static int |
INDEX_RECORD_BLOCK_SIZE
|
static int |
NONVERSIONED_RECORD_INDEX_VERSION
The version number associated with any index records prior to the point when version information was encoded in newly created records |
static int |
PRIMITIVE_TYPE_ID_INDEX_VERSION
The version number that is associated with the change made to add primitive type ID on datatype records 02/28/2006. |
static int |
PROCEDURE_UPDATE_COUNT_VERSION
The version number that is associated with the change made to add an update count to physical stored and XQuery procedures 04/29/2008. |
static int |
TABLE_MATERIALIZATION_INDEX_VERSION
The version number that is associated with the change made to add materialization property on tables. |
static int |
TRANSFORMATION_UUID_INDEX_VERSION
The version number that is associated with the change made to add uuid for the transformation mapping root on the transformation records, uuids would now be indexed as part of the transformation index. |
Constructor Summary | |
---|---|
RecordFactory()
|
Method Summary | |
---|---|
static AnnotationRecord |
createAnnotationRecord(char[] record)
Create a AnnotationRecord instance from the specified index record |
static ColumnRecord |
createColumnRecord(char[] record)
Create a ColumnRecord instance from the specified index record |
static ColumnSetRecord |
createColumnSetRecord(char[] record)
Create a ColumnSetRecord instance from the specified index record |
static DatatypeRecord |
createDatatypeRecord(char[] record)
Create a DatatypeRecord instance from the specified index record |
static FileRecord |
createFileRecord(char[] record)
Create a FileRecord instance from the specified index record |
static ForeignKeyRecord |
createForeignKeyRecord(char[] record)
Create a ForeignKeyRecord instance from the specified index record |
static ModelRecord |
createModelRecord(char[] record)
Create a ModelRecord instance from the specified index record |
static ProcedureParameterRecord |
createProcedureParameterRecord(char[] record)
Create a ProcedureParameterRecord instance from the specified index record header|defaultValue|dataType|length|radix|scale|nullType|precision|paramType|footer| |
static ProcedureRecord |
createProcedureRecord(char[] record)
Create a ProcedureRecord instance from the specified index record |
static PropertyRecord |
createPropertyRecord(char[] record)
Create a PropertyRecord instance from the specified index record |
static TableRecord |
createTableRecord(char[] record)
Create a TableRecord instance from the specified index record |
static TransformationRecord |
createTransformationRecord(char[] record)
Create a TransformationRecord instance from the specified index record |
static UniqueKeyRecord |
createUniqueKeyRecord(char[] record)
Create a UniqueKeyRecord instance from the specified index record |
static VdbRecord |
createVdbRecord(char[] record)
Create a ModelRecord instance from the specified index record |
static java.lang.String |
extractUUIDString(IEntryResult result)
Extract the UUID string from the IEntryResult |
static boolean |
getBooleanValue(char b)
|
static int |
getContinuationSegmentNumber(java.lang.String objectID,
IEntryResult continuationResult)
|
static int |
getCurrentIndexVersionNumber()
|
static java.util.List |
getIDs(java.lang.String values,
int indexVersionNumber)
|
static int |
getIndexVersion(char[] record)
Search for and return the version number associated with this record. |
static char |
getListDelimiter(int indexVersionNumber)
|
static MetadataRecord |
getMetadataRecord(IEntryResult queryResult)
Return the MetadataRecord
instances for specified IEntryResult. |
static java.util.Collection |
getMetadataRecord(IEntryResult[] queryResult)
Return a collection of MetadataRecord
instances for the result obtained from executing queryEntriesMatching
method on the com.metamatrix.internal.core.index.impl.Index |
static java.util.Collection |
getMetadataRecord(IEntryResult[] queryResult,
EObjectFinder container)
Return a collection of MetadataRecord
instances for the result obtained from executing queryEntriesMatching
method on the com.metamatrix.internal.core.index.impl.Index |
static MetadataRecord |
getMetadataRecord(IEntryResult queryResult,
EObjectFinder container)
Return the MetadataRecord
instances for specified IEntryResult. |
static java.lang.String |
getObjectValue(java.lang.String str)
|
static java.lang.String |
getOptionalToken(java.util.List tokens,
int tokenIndex)
|
static java.util.List |
getStrings(java.lang.String values,
int indexVersionNumber)
|
static boolean |
includeAnnotationProperties(int indexVersionNumber)
|
static boolean |
includeColumnNativeType(int indexVersionNumber)
|
static boolean |
includeColumnNullDistinctValues(int indexVersionNumber)
|
static boolean |
includeInputParameterFlag(int indexVersionNumber)
|
static boolean |
includeMaterializationFlag(int indexVersionNumber)
|
static boolean |
includeMaterializedTables(int indexVersionNumber)
|
static boolean |
includePrimitiveTypeIdValue(int indexVersionNumber)
|
static boolean |
includeTransformationUUID(int indexVersionNumber)
|
static IEntryResult |
joinEntryResults(IEntryResult result,
IEntryResult[] continuationResults,
int blockSize)
Append the specified IEntryResult[] to the IEntryResult to create a single result representing an index entry that was split across multiple index records. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INDEX_RECORD_BLOCK_SIZE
public static final int NONVERSIONED_RECORD_INDEX_VERSION
public static final int DELIMITER_INDEX_VERSION
com.metamatrix.modeler.core.index.IndexConstants.LIST_DELIMITER_OLD
to com.metamatrix.modeler.core.index.IndexConstants.LIST_DELIMITER
and also the
property delimiter was changed from com.metamatrix.modeler.core.index.IndexConstants.PROP_DELIMITER_OLD
to com.metamatrix.modeler.core.index.IndexConstants.PROP_DELIMITER
. Added 07/22/2004.
public static final int TABLE_MATERIALIZATION_INDEX_VERSION
public static final int COLUMN_NATIVE_TYPE_INDEX_VERSION
public static final int COLUMN_INPUT_PARAMETER_FLAG_INDEX_VERSION
public static final int ANNOTATION_TAGS_INDEX_VERSION
public static final int TRANSFORMATION_UUID_INDEX_VERSION
public static final int COLUMN_NULL_DISTINCT_INDEX_VERSION
public static final int PRIMITIVE_TYPE_ID_INDEX_VERSION
public static final int PROCEDURE_UPDATE_COUNT_VERSION
public static final int CURRENT_INDEX_VERSION
Constructor Detail |
---|
public RecordFactory()
Method Detail |
---|
public static java.util.Collection getMetadataRecord(IEntryResult[] queryResult, EObjectFinder container)
MetadataRecord
instances for the result obtained from executing queryEntriesMatching
method on the com.metamatrix.internal.core.index.impl.Index
queryResult
- container
- Container reference to be set on the recordpublic static java.util.Collection getMetadataRecord(IEntryResult[] queryResult)
MetadataRecord
instances for the result obtained from executing queryEntriesMatching
method on the com.metamatrix.internal.core.index.impl.Index
queryResult
- container
- Container reference to be set on the recordpublic static MetadataRecord getMetadataRecord(IEntryResult queryResult)
MetadataRecord
instances for specified IEntryResult.
entryResult
- public static MetadataRecord getMetadataRecord(IEntryResult queryResult, EObjectFinder container)
MetadataRecord
instances for specified IEntryResult.
entryResult
- container
- Container reference to be set on the recordpublic static IEntryResult joinEntryResults(IEntryResult result, IEntryResult[] continuationResults, int blockSize)
result
- continuationResults
- blockSize
- public static int getContinuationSegmentNumber(java.lang.String objectID, IEntryResult continuationResult)
public static java.lang.String extractUUIDString(IEntryResult result)
result
- public static ModelRecord createModelRecord(char[] record)
public static VdbRecord createVdbRecord(char[] record)
public static TransformationRecord createTransformationRecord(char[] record)
public static TableRecord createTableRecord(char[] record)
public static ColumnRecord createColumnRecord(char[] record)
public static ColumnSetRecord createColumnSetRecord(char[] record)
public static ForeignKeyRecord createForeignKeyRecord(char[] record)
public static UniqueKeyRecord createUniqueKeyRecord(char[] record)
public static DatatypeRecord createDatatypeRecord(char[] record)
public static ProcedureRecord createProcedureRecord(char[] record)
public static ProcedureParameterRecord createProcedureParameterRecord(char[] record)
public static AnnotationRecord createAnnotationRecord(char[] record)
public static PropertyRecord createPropertyRecord(char[] record)
public static FileRecord createFileRecord(char[] record)
public static int getIndexVersion(char[] record)
record
- public static java.lang.String getObjectValue(java.lang.String str)
public static boolean getBooleanValue(char b)
public static java.util.List getIDs(java.lang.String values, int indexVersionNumber)
public static java.util.List getStrings(java.lang.String values, int indexVersionNumber)
public static char getListDelimiter(int indexVersionNumber)
public static boolean includeMaterializationFlag(int indexVersionNumber)
public static boolean includeMaterializedTables(int indexVersionNumber)
public static boolean includeColumnNativeType(int indexVersionNumber)
public static boolean includeColumnNullDistinctValues(int indexVersionNumber)
public static boolean includePrimitiveTypeIdValue(int indexVersionNumber)
public static boolean includeInputParameterFlag(int indexVersionNumber)
public static boolean includeAnnotationProperties(int indexVersionNumber)
public static boolean includeTransformationUUID(int indexVersionNumber)
public static int getCurrentIndexVersionNumber()
public static java.lang.String getOptionalToken(java.util.List tokens, int tokenIndex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |