@Tags(value={"lookup","enrich","key","value"}) @CapabilityDescription(value="Allows users to add key/value pairs as User-defined Properties. Each property that is added can be looked up by Property Name. The coordinates that are passed to the lookup must contain the key \'key\'.") public class SimpleKeyValueLookupService extends AbstractControllerService implements StringLookupService
| Modifier and Type | Field and Description |
|---|---|
private static String |
KEY |
private Map<String,String> |
lookupValues |
private static Set<String> |
REQUIRED_KEYS |
| Constructor and Description |
|---|
SimpleKeyValueLookupService() |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheConfiguredValues(ConfigurationContext context) |
Set<String> |
getRequiredKeys() |
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) |
Optional<String> |
lookup(Map<String,Object> coordinates) |
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledcustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValueTypelookupinitialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate static final String KEY
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor in class AbstractConfigurableComponent@OnEnabled public void cacheConfiguredValues(ConfigurationContext context)
public Optional<String> lookup(Map<String,Object> coordinates)
lookup in interface LookupService<String>public Set<String> getRequiredKeys()
getRequiredKeys in interface LookupService<String>Copyright © 2022 Apache NiFi Project. All rights reserved.