public class NamespacedExtractor extends LookupExtractor
| Constructor and Description |
|---|
NamespacedExtractor(com.google.common.base.Function<String,com.google.common.base.Function<String,String>> namespaces,
com.google.common.base.Function<String,com.google.common.base.Function<String,List<String>>> reverseNamespaces,
String namespace) |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String value)
Apply a particular lookup methodology to the input string
|
byte[] |
getCacheKey()
Create a cache key for use in results caching
|
String |
getNamespace() |
List<String> |
unapply(String value)
Provide the reverse mapping from a given value to a list of keys
|
applyAll, unapplyAllpublic NamespacedExtractor(@NotNull
com.google.common.base.Function<String,com.google.common.base.Function<String,String>> namespaces,
@NotNull
com.google.common.base.Function<String,com.google.common.base.Function<String,List<String>>> reverseNamespaces,
@NotNull
String namespace)
public String getNamespace()
public byte[] getCacheKey()
LookupExtractorgetCacheKey in class LookupExtractorpublic String apply(String value)
LookupExtractorapply in class LookupExtractorvalue - The value to apply the lookup to. May not be nullpublic List<String> unapply(@NotNull String value)
LookupExtractorunapply in class LookupExtractorvalue - the value to apply the reverse lookup
Null and empty are considered to be the same value = nullToEmpty(value)Copyright © 2011–2016. All rights reserved.