|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.connector.metadata.index.IndexCriteriaBuilder
public class IndexCriteriaBuilder
This is used by MetadataConnector to build criteria patterns used to query index files. This has generic methods to build criteria that matches a particular header patterns that is part of most index records. It also can be extended to create a pattern that matches the record pattern for a given record type.
Constructor Summary | |
---|---|
IndexCriteriaBuilder()
|
Method Summary | |
---|---|
static java.util.Collection |
getLiteralCriteria(java.util.Map criteria)
Return a collection of criteria maps with MetadataLiteralCriteria's, any compound criteria are broken down into a collection of MetadataLiteralCriteria. |
static java.lang.String |
getMatchPattern(java.lang.String indexName,
java.util.Map criteria)
Return the pattern match string constructed from a map of match criteria values. |
static java.lang.String |
getMatchPrefix(java.lang.String indexName,
java.util.Map criteria)
Return the prefix match string constructed from a map of match criteria values. |
protected static java.lang.String |
getValueInCriteria(java.util.Map criteria,
java.lang.String fieldName)
Look for the value for the given field in the criteria map, translate it if necessary to the format stored in index files and return it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexCriteriaBuilder()
Method Detail |
---|
public static java.lang.String getMatchPrefix(java.lang.String indexName, java.util.Map criteria)
indexName
- The name of the index file that would be queried using the prefix returned.criteria
- the map of match criteria to use
public static java.lang.String getMatchPattern(java.lang.String indexName, java.util.Map criteria)
indexName
- The name of the index file that would be queried using the pattern returned.criteria
- the map of match criteria to use
public static java.util.Collection getLiteralCriteria(java.util.Map criteria)
criteria
- The criteria built from metadata query
protected static java.lang.String getValueInCriteria(java.util.Map criteria, java.lang.String fieldName)
criteria
- the map of match criteria to usefieldName
- The name of the field to look for in the criteria
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |