Interface IKeyExtractor<T>
- All Known Implementing Classes:
QueryInfoExtractor
,ServiceKeyExtractor
public interface IKeyExtractor<T>
Interface denoting key extraction functionality for indexers.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetKeyMatchingMode
(String keytype, T value) Extracts the matching mode from a multivalued term.String[]
Get the key names for this type of extractor.getKeyValues
(String keytype, T value) Extracts key value from an object.
-
Field Details
-
MATCH_ALWAYS
Match any value constant for values. Indexer checks if value is ANY and then it always matches.- See Also:
-
-
Method Details
-
getKeyValues
Extracts key value from an object.- Parameters:
keytype
- The type of key being extracted.value
- The value.- Returns:
- The keys matching the type.
-
getKeyMatchingMode
Extracts the matching mode from a multivalued term. true = AND, false = OR- Parameters:
keytype
- The type of key being extracted.value
- The value.- Returns:
- The key matching mode.
-
getKeyNames
String[] getKeyNames()Get the key names for this type of extractor.- Returns:
- The key names.
-