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 |
equals(Object o) |
byte[] |
getCacheKey()
Create a cache key for use in results caching
|
Map<String,String> |
getMap() |
int |
hashCode() |
boolean |
isOneToOne() |
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 LookupExtractorCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.