public class MapLookupExtractor extends LookupExtractor
| Constructor and Description |
|---|
MapLookupExtractor(Map<String,String> map,
boolean isOneToOne) |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String key)
Apply a particular lookup methodology to the input string
|
boolean |
canIterate()
Returns true if this lookup extractor's
LookupExtractor.iterable() method will return a valid iterator. |
boolean |
equals(Object o) |
byte[] |
getCacheKey()
Create a cache key for use in results caching
|
Map<String,String> |
getMap() |
int |
hashCode() |
boolean |
isOneToOne() |
Iterable<Map.Entry<String,String>> |
iterable()
Returns an Iterable that iterates over the keys and values in this lookup extractor.
|
List<String> |
unapply(String value)
Provide the reverse mapping from a given value to a list of keys
|
applyAll, unapplyAll@Nullable public String apply(@Nullable String key)
LookupExtractorapply in class LookupExtractorkey - The value to apply the lookup to.public List<String> unapply(@Nullable String value)
LookupExtractorunapply in class LookupExtractorvalue - the value to apply the reverse lookuppublic boolean isOneToOne()
isOneToOne in class LookupExtractorpublic byte[] getCacheKey()
LookupExtractorgetCacheKey in class LookupExtractorpublic boolean canIterate()
LookupExtractorLookupExtractor.iterable() method will return a valid iterator.canIterate in class LookupExtractorpublic Iterable<Map.Entry<String,String>> iterable()
LookupExtractoriterable in class LookupExtractorCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.