|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.connector.metadata.index.MetadataResultsPostProcessor
public class MetadataResultsPostProcessor
This is used to post process metadata records found by querying index files available to the metadata connector. Some of the post processing steps: 1) VdbRecords get wrapped into an object that has the name and version used by the user to logon. 2) Update ModelRecods with the visibility info from VDBService. 3) Filter FileRecords that are not visible. 4) Apply serch criteria to take care of case sensitive matches that get ingnore when querying indexes.
Constructor Summary | |
---|---|
MetadataResultsPostProcessor(VdbMetadataContext context)
Constructor MetadataResultsPostProcessor |
Method Summary | |
---|---|
MetadataRecord |
filterBySearchCriteria(MetadataRecord record,
java.util.Map searchCriteria)
Apply the given search criteria and filter out records, currently used to apply case sensitive matches since records matched in indexes are case insensitive matches. |
ModelRecord |
getModelRecordWithUpdatedVisibility(ModelRecord record)
Update the ModelRecord with the visibility from vdb service, if vdb service is not available there is nothing to update. |
MetadataRecord |
getWarpedVdbRecord(VdbRecord record)
Wrap the vdb recods into a RuntimeVdbRecods with real vdb information. |
java.util.Collection |
processMetadataRecords(java.lang.String indexFileName,
java.util.Collection records,
java.util.Map searchCriteria,
boolean needSearchFiltering)
Post process metadata records, to update record information and filter out recods. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetadataResultsPostProcessor(VdbMetadataContext context)
context
- Method Detail |
---|
public java.util.Collection processMetadataRecords(java.lang.String indexFileName, java.util.Collection records, java.util.Map searchCriteria, boolean needSearchFiltering)
records
- Collection of MetadataRecods from querying index filessearchCriteria
- Map of fieldNames to MetadataSearchCriteria objects used to searchneedSearchFiltering
- boolean to indicate to post processing of metadata records is
needed by applying search criteria
public MetadataRecord getWarpedVdbRecord(VdbRecord record)
record
- The VDBRecord object.
public ModelRecord getModelRecordWithUpdatedVisibility(ModelRecord record)
record
- The ModelRecord object.
public MetadataRecord filterBySearchCriteria(MetadataRecord record, java.util.Map searchCriteria)
record
- The metadata reord to be filterdsearchCriteria
- Map of fieldNames to MetadataSearchCriteria objects used to search
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |