Package org.apache.nifi.lookup
Class SimpleCsvFileLookupService
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.lookup.AbstractCSVLookupService
org.apache.nifi.lookup.SimpleCsvFileLookupService
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.controller.ControllerService,LookupService<String>,StringLookupService
@Tags({"lookup","cache","enrich","join","csv","reloadable","key","value"})
@CapabilityDescription("A reloadable CSV file-based lookup service. The first line of the csv file is considered as header.")
@Restricted(restrictions=@Restriction(requiredPermission=READ_FILESYSTEM,explanation="Provides operator the ability to read from any file that NiFi has access to."))
public class SimpleCsvFileLookupService
extends AbstractCSVLookupService
implements StringLookupService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ConcurrentMap<String, String> static final org.apache.nifi.components.PropertyDescriptorprivate StringFields inherited from class org.apache.nifi.lookup.AbstractCSVLookupService
charset, CHARSET, CSV_FILE, CSV_FORMAT, csvFile, csvFormat, DEFAULT, IGNORE_DUPLICATES, ignoreDuplicates, KEY, lock, LOOKUP_KEY_COLUMN, lookupKeyColumn, properties, RFC4180, watcher -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.nifi.lookup.AbstractCSVLookupService
getSupportedPropertyDescriptorsMethods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, initialize, isEnabledMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, 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
-
REQUIRED_KEYS
-
LOOKUP_VALUE_COLUMN
public static final org.apache.nifi.components.PropertyDescriptor LOOKUP_VALUE_COLUMN -
cache
-
lookupValueColumn
-
-
Constructor Details
-
SimpleCsvFileLookupService
public SimpleCsvFileLookupService()
-
-
Method Details
-
loadCache
- Specified by:
loadCachein classAbstractCSVLookupService- Throws:
IllegalStateExceptionIOException
-
init
protected void init(org.apache.nifi.controller.ControllerServiceInitializationContext context) - Overrides:
initin classAbstractCSVLookupService
-
onEnabled
@OnEnabled public void onEnabled(org.apache.nifi.controller.ConfigurationContext context) throws IOException, InitializationException - Overrides:
onEnabledin classAbstractCSVLookupService- Throws:
IOExceptionInitializationException
-
lookup
- Specified by:
lookupin interfaceLookupService<String>- Throws:
LookupFailureException
-
getRequiredKeys
- Specified by:
getRequiredKeysin interfaceLookupService<String>
-
onDisabled
@OnDisabled public void onDisabled() -
isCaching
boolean isCaching()
-