Package org.apache.nifi.lookup
Class AbstractCSVLookupService
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.lookup.AbstractCSVLookupService
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.controller.ControllerService
- Direct Known Subclasses:
CSVRecordLookupService,SimpleCsvFileLookupService
public abstract class AbstractCSVLookupService
extends org.apache.nifi.controller.AbstractControllerService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorprotected Stringprotected org.apache.commons.csv.CSVFormatstatic final org.apache.nifi.components.AllowableValuestatic final org.apache.nifi.components.PropertyDescriptorprotected booleanprotected static final Stringprotected final ReentrantLockstatic final org.apache.nifi.components.PropertyDescriptorprotected Stringprotected List<org.apache.nifi.components.PropertyDescriptor> static final org.apache.nifi.components.AllowableValueprotected SynchronousFileWatcher -
Constructor Summary
Constructors -
Method Summary
Methods 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
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
isStateful, migrateProperties
-
Field Details
-
KEY
- See Also:
-
RFC4180
public static final org.apache.nifi.components.AllowableValue RFC4180 -
DEFAULT
public static final org.apache.nifi.components.AllowableValue DEFAULT -
CSV_FILE
public static final org.apache.nifi.components.PropertyDescriptor CSV_FILE -
CHARSET
public static final org.apache.nifi.components.PropertyDescriptor CHARSET -
CSV_FORMAT
public static final org.apache.nifi.components.PropertyDescriptor CSV_FORMAT -
LOOKUP_KEY_COLUMN
public static final org.apache.nifi.components.PropertyDescriptor LOOKUP_KEY_COLUMN -
IGNORE_DUPLICATES
public static final org.apache.nifi.components.PropertyDescriptor IGNORE_DUPLICATES -
properties
-
csvFile
-
csvFormat
protected volatile org.apache.commons.csv.CSVFormat csvFormat -
charset
-
lookupKeyColumn
-
ignoreDuplicates
protected volatile boolean ignoreDuplicates -
watcher
-
lock
-
-
Constructor Details
-
AbstractCSVLookupService
public AbstractCSVLookupService()
-
-
Method Details
-
loadCache
- Throws:
IllegalStateExceptionIOException
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
init
protected void init(org.apache.nifi.controller.ControllerServiceInitializationContext context) - Overrides:
initin classorg.apache.nifi.controller.AbstractControllerService
-
onEnabled
public void onEnabled(org.apache.nifi.controller.ConfigurationContext context) throws IOException, InitializationException - Throws:
IOExceptionInitializationException
-