public interface LookupService<T> extends ControllerService
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getRequiredKeys()
Many Lookup Services will require a specific set of information be passed in to the
lookup(Map) method. |
Class<?> |
getValueType() |
Optional<T> |
lookup(Map<String,Object> coordinates)
Looks up a value that corresponds to the given map of information, referred to as lookup coordinates
|
default Optional<T> |
lookup(Map<String,Object> coordinates,
Map<String,String> context)
Looks up a value that corresponds to the given map, coordinates.
|
initializegetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateOptional<T> lookup(Map<String,Object> coordinates) throws LookupFailureException
coordinates - a Map of key/value pairs that indicate the information that should be looked upLookupFailureException - if unable to lookup a value for the given coordinatesdefault Optional<T> lookup(Map<String,Object> coordinates, Map<String,String> context) throws LookupFailureException
coordinates - a Map of key/value pairs that indicate the information that should be looked upcontext - a Map of additional informationLookupFailureException - if unable to lookup a value for the given coordinatesClass<?> getValueType()
lookup(Map)Set<String> getRequiredKeys()
lookup(Map) method.
This method will return the Set of keys that must be present in the map that is passed to lookup(Map) in order
for the lookup to succeed.lookup(Map) in order to the lookup to succeed, or an empty set
if no specific keys are required.Copyright © 2019 Apache NiFi Project. All rights reserved.