Class DistributedMapCacheLookupService

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.lookup.DistributedMapCacheLookupService
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService, LookupService<String>, StringLookupService

@Tags({"lookup","enrich","key","value","map","cache","distributed"}) @CapabilityDescription("Allows to choose a distributed map cache client to retrieve the value associated to a key. The coordinates that are passed to the lookup must contain the key \'key\'.") public class DistributedMapCacheLookupService extends org.apache.nifi.controller.AbstractControllerService implements StringLookupService
  • Field Details

    • STANDARD_CHARSETS

      private static final List<Charset> STANDARD_CHARSETS
    • KEY

      private static final String KEY
      See Also:
    • REQUIRED_KEYS

      private static final Set<String> REQUIRED_KEYS
    • cache

      private volatile DistributedMapCacheClient cache
    • charset

      private static volatile Charset charset
    • keySerializer

      private final Serializer<String> keySerializer
    • valueDeserializer

      private final Deserializer<String> valueDeserializer
    • PROP_DISTRIBUTED_CACHE_SERVICE

      public static final org.apache.nifi.components.PropertyDescriptor PROP_DISTRIBUTED_CACHE_SERVICE
    • CHARACTER_ENCODING

      public static final org.apache.nifi.components.PropertyDescriptor CHARACTER_ENCODING
    • PROPERTY_DESCRIPTORS

      private static final List<org.apache.nifi.components.PropertyDescriptor> PROPERTY_DESCRIPTORS
  • Constructor Details

    • DistributedMapCacheLookupService

      public DistributedMapCacheLookupService()
  • Method Details

    • getStandardCharsetNames

      private static Set<String> getStandardCharsetNames()
    • onEnabled

      @OnEnabled public void onEnabled(org.apache.nifi.controller.ConfigurationContext context)
    • getSupportedPropertyDescriptors

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

      public Optional<String> lookup(Map<String,Object> coordinates)
      Specified by:
      lookup in interface LookupService<String>
    • getRequiredKeys

      public Set<String> getRequiredKeys()
      Specified by:
      getRequiredKeys in interface LookupService<String>