com.metamatrix.modeler.transformation.metadata
Class ServerRuntimeMetadata

java.lang.Object
  extended by com.metamatrix.query.metadata.BasicQueryMetadata
      extended by com.metamatrix.modeler.transformation.metadata.TransformationMetadata
          extended by com.metamatrix.modeler.transformation.metadata.ServerRuntimeMetadata
All Implemented Interfaces:
QueryMetadataInterface
Direct Known Subclasses:
MetadataConnectorMetadata

public class ServerRuntimeMetadata
extends TransformationMetadata

Metadata implementation used by server to resolve queries.


Field Summary
 
Fields inherited from class com.metamatrix.modeler.transformation.metadata.TransformationMetadata
columnComparator, DELIMITER_CHAR, DELIMITER_STRING, NOT_EXISTS_MESSAGE
 
Fields inherited from interface com.metamatrix.query.metadata.QueryMetadataInterface
UNKNOWN_CARDINALITY
 
Constructor Summary
ServerRuntimeMetadata(QueryMetadataContext context)
          ServerRuntimeMetadata constructor
 
Method Summary
protected  com.metamatrix.internal.core.index.Index[] getIndexes(char recordType, IndexSelector selector)
          Return the array of MtkIndex instances representing core indexes for the specified record type
protected  IEntryResult[] queryIndex(com.metamatrix.internal.core.index.Index[] indexes, char[] pattern, boolean isPrefix, boolean returnFirstMatch)
          Return all index file records that match the specified record pattern.
 
Methods inherited from class com.metamatrix.modeler.transformation.metadata.TransformationMetadata
elementSupports, filterMetadataRecordForUUID, findChildRecords, findChildRecordsForColumns, findChildRecordsWithoutFiltering, findMetadataRecord, findMetadataRecords, findMetadataRecords, getAccessPatternsInGroup, getBinaryVDBResource, getCardinality, getCharacterVDBResource, getContext, getDatatypeRecord, getDatatypeUUIDMatchPattern, getDefaultValue, getDeletePlan, getDistinctValues, getElementID, getElementIDsInAccessPattern, getElementIDsInGroupID, getElementIDsInIndex, getElementIDsInKey, getElementLength, getElementType, getExtensionProperties, getForeignKeysInGroup, getFormat, getFullElementName, getFullName, getGroupID, getGroupIDForElementID, getGroupName, getGroupsForPartialName, getIndexesInGroup, getIndexSelector, getInsertPlan, getMappingNode, getMatchPattern, getMaterialization, getMaterializationStage, getMaximumValue, getMaxSetSize, getMinimumValue, getModeledBaseType, getModeledPrimitiveType, getModeledType, getModelID, getNameInSource, getNativeType, getNullValues, getParentPrefixPattern, getPosition, getPrecision, getPrefixPattern, getPrimaryKeyIDForForeignKeyID, getRadix, getRecordByType, getScale, getShortElementName, getStoredProcedureInfoForProcedure, getUniqueKeysInGroup, getUpdatePlan, getUUIDMatchPattern, getUUIDPrefixPattern, getVDBResourcePaths, getVirtualDatabaseName, getVirtualPlan, getXMLSchemas, getXMLTempGroups, groupSupports, hasMaterialization, isProcedure, isTemporaryGroup, isVirtualGroup, isVirtualModel, isXMLGroup, modelSupports, queryIndex, queryIndex
 
Methods inherited from class com.metamatrix.query.metadata.BasicQueryMetadata
addToMetadataCache, getFromMetadataCache, isScalarGroup, isTemporaryTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerRuntimeMetadata

public ServerRuntimeMetadata(QueryMetadataContext context)
ServerRuntimeMetadata constructor

Parameters:
context - Object containing the info needed to lookup metadta.
Method Detail

getIndexes

protected com.metamatrix.internal.core.index.Index[] getIndexes(char recordType,
                                                                IndexSelector selector)
                                                         throws MetaMatrixComponentException
Return the array of MtkIndex instances representing core indexes for the specified record type

Overrides:
getIndexes in class TransformationMetadata
Parameters:
recordType - The type of record to loop up the indexes that conyains it
selector - The indexselector that has access to indexes
Returns:
The array if indexes
Throws:
QueryMetadataException
MetaMatrixComponentException

queryIndex

protected IEntryResult[] queryIndex(com.metamatrix.internal.core.index.Index[] indexes,
                                    char[] pattern,
                                    boolean isPrefix,
                                    boolean returnFirstMatch)
                             throws MetaMatrixComponentException
Description copied from class: TransformationMetadata
Return all index file records that match the specified record pattern.

Overrides:
queryIndex in class TransformationMetadata
Parameters:
indexes - the array of MtkIndex instances to query
Returns:
results
Throws:
QueryMetadataException
MetaMatrixComponentException
Since:
4.2
See Also:
com.metamatrix.modeler.transformation.metadata.TransformationMetadata#queryIndex(com.metamatrix.core.index.impl.Index[], char[], boolean, boolean)


Copyright © 2009. All Rights Reserved.