Package org.apache.nifi.lookup
Class SimpleKeyValueLookupService
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.lookup.SimpleKeyValueLookupService
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.controller.ControllerService,LookupService<String>,StringLookupService
@Tags({"lookup","enrich","key","value"})
@CapabilityDescription("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\'.")
@DynamicProperty(name="A key that can be looked up",
value="The value for the key",
expressionLanguageScope=ENVIRONMENT,
description="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 org.apache.nifi.controller.AbstractControllerService
implements StringLookupService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheConfiguredValues(org.apache.nifi.controller.ConfigurationContext context) protected org.apache.nifi.components.PropertyDescriptorgetSupportedDynamicPropertyDescriptor(String propertyDescriptorName) Methods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migratePropertiesMethods inherited from interface org.apache.nifi.lookup.LookupService
lookupMethods inherited from interface org.apache.nifi.lookup.StringLookupService
getValueType
-
Field Details
-
KEY
- See Also:
-
REQUIRED_KEYS
-
lookupValues
-
-
Constructor Details
-
SimpleKeyValueLookupService
public SimpleKeyValueLookupService()
-
-
Method Details
-
getSupportedDynamicPropertyDescriptor
protected org.apache.nifi.components.PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) - Overrides:
getSupportedDynamicPropertyDescriptorin classorg.apache.nifi.components.AbstractConfigurableComponent
-
cacheConfiguredValues
@OnEnabled public void cacheConfiguredValues(org.apache.nifi.controller.ConfigurationContext context) -
lookup
- Specified by:
lookupin interfaceLookupService<String>
-
getRequiredKeys
- Specified by:
getRequiredKeysin interfaceLookupService<String>
-