Merge pull request #2343 from gianm/fix-lookups

Fix a couple of problems with lookups
This commit is contained in:
Slim 2016-01-27 10:34:11 -06:00
commit abf2f457b1
2 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ public class NamespacedExtractor extends LookupExtractor
public NamespacedExtractor(
@NotNull @JacksonInject @Named("dimExtractionNamespace")
final Function<String, Function<String, String>> namespaces,
@NotNull @JacksonInject @Named("reverseDimExtractionNamespace")
@NotNull @JacksonInject @Named("dimReverseExtractionNamespace")
final Function<String, Function<String, List<String>>> reverseNamespaces,
@NotNull @JsonProperty(value = "namespace", required = true)
final String namespace

View File

@ -44,7 +44,7 @@ public abstract class LookupExtractor
* @return The lookup, or null key cannot have the lookup applied to it and should be treated as missing.
*/
@Nullable
abstract String apply(@NotNull String key);
public abstract String apply(@NotNull String key);
/**
* @param keys set of keys to apply lookup for each element
@ -54,7 +54,7 @@ public abstract class LookupExtractor
* User can override this method if there is a better way to perform bulk lookup
*/
Map<String, String> applyAll(Iterable<String> keys)
public Map<String, String> applyAll(Iterable<String> keys)
{
if (keys == null) {
return Collections.emptyMap();
@ -88,7 +88,7 @@ public abstract class LookupExtractor
* User can override this method if there is a better way to perform bulk reverse lookup
*/
Map<String, List<String>> unapplyAll(Iterable<String> values)
public Map<String, List<String>> unapplyAll(Iterable<String> values)
{
if (values == null) {
return Collections.emptyMap();
@ -107,5 +107,5 @@ public abstract class LookupExtractor
*/
@Nullable
abstract byte[] getCacheKey();
public abstract byte[] getCacheKey();
}