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

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    protected String
     
    protected org.apache.commons.csv.CSVFormat
     
    static final org.apache.nifi.components.AllowableValue
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    protected boolean
     
    protected static final String
     
    protected final ReentrantLock
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    protected String
     
    protected List<org.apache.nifi.components.PropertyDescriptor>
     
    static final org.apache.nifi.components.AllowableValue
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<org.apache.nifi.components.PropertyDescriptor>
     
    protected void
    init(org.apache.nifi.controller.ControllerServiceInitializationContext context)
     
    protected abstract void
     
    void
    onEnabled(org.apache.nifi.controller.ConfigurationContext context)
     

    Methods inherited from class org.apache.nifi.controller.AbstractControllerService

    abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, initialize, isEnabled

    Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent

    customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.nifi.components.ConfigurableComponent

    getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.controller.ControllerService

    isStateful, migrateProperties
  • Field Details

    • KEY

      protected static final String 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

      protected List<org.apache.nifi.components.PropertyDescriptor> properties
    • csvFile

      protected volatile String csvFile
    • csvFormat

      protected volatile org.apache.commons.csv.CSVFormat csvFormat
    • charset

      protected volatile String charset
    • lookupKeyColumn

      protected volatile String lookupKeyColumn
    • ignoreDuplicates

      protected volatile boolean ignoreDuplicates
    • watcher

      protected volatile SynchronousFileWatcher watcher
    • lock

      protected final ReentrantLock lock
  • Constructor Details

    • AbstractCSVLookupService

      public AbstractCSVLookupService()
  • Method Details

    • loadCache

      protected abstract void loadCache() throws IllegalStateException, IOException
      Throws:
      IllegalStateException
      IOException
    • getSupportedPropertyDescriptors

      protected List<org.apache.nifi.components.PropertyDescriptor> getSupportedPropertyDescriptors()
      Overrides:
      getSupportedPropertyDescriptors in class org.apache.nifi.components.AbstractConfigurableComponent
    • init

      protected void init(org.apache.nifi.controller.ControllerServiceInitializationContext context)
      Overrides:
      init in class org.apache.nifi.controller.AbstractControllerService
    • onEnabled

      public void onEnabled(org.apache.nifi.controller.ConfigurationContext context) throws IOException, InitializationException
      Throws:
      IOException
      InitializationException