@Tags(value={"lookup","record","script","invoke","groovy","python","jython","jruby","ruby","javascript","js","lua","luaj"}) @CapabilityDescription(value="Allows the user to provide a scripted LookupService instance in order to enrich records from an incoming flow file. Please note, that due to a bug in Jython that remains unresolved, it is not possible to use Jython to write a script for this service in Python.") @Restricted(restrictions=@Restriction(requiredPermission=EXECUTE_CODE,explanation="Provides operator the ability to execute arbitrary code assuming all permissions that NiFi has.")) public class ScriptedLookupService extends BaseScriptedLookupService implements LookupService<Object>
kerberosConfigFile, kerberosServiceKeytab, kerberosServicePrincipal, lookupServiceconfigurationContext, scriptEngine, scriptingComponentHelper, scriptNeedsReload, validationResults| Constructor and Description |
|---|
ScriptedLookupService() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getRequiredKeys() |
Class<?> |
getValueType() |
Optional<Object> |
lookup(Map<String,Object> coordinates) |
getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, init, onDisabled, onEnabled, onPropertyModified, reloadScript, setupcustomValidate, reloadScriptBody, reloadScriptFileabstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, initialize, isEnabledequals, getPropertyDescriptor, getPropertyDescriptors, hashCode, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitlookupinitializegetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic Set<String> getRequiredKeys()
getRequiredKeys in interface LookupService<Object>public Class<?> getValueType()
getValueType in interface LookupService<Object>public Optional<Object> lookup(Map<String,Object> coordinates) throws LookupFailureException
lookup in interface LookupService<Object>LookupFailureExceptionCopyright © 2021 Apache NiFi Project. All rights reserved.