Class AbstractJoltTransform

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.jolt.AbstractJoltTransform
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.processor.Processor
Direct Known Subclasses:
JoltTransformJSON, JoltTransformRecord

public abstract class AbstractJoltTransform extends org.apache.nifi.processor.AbstractProcessor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.nifi.components.PropertyDescriptor
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final List<org.apache.nifi.components.PropertyDescriptor>
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    private com.github.benmanes.caffeine.cache.Cache<Optional<String>,com.bazaarvoice.jolt.JoltTransform>
    It is a cache for transform objects.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) com.bazaarvoice.jolt.JoltTransform
    createTransform(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.flowfile.FlowFile flowFile)
     
    protected Collection<org.apache.nifi.components.ValidationResult>
    customValidate(org.apache.nifi.components.ValidationContext validationContext)
     
    protected FilenameFilter
     
    (package private) com.bazaarvoice.jolt.JoltTransform
    getTransform(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.flowfile.FlowFile flowFile)
     
    (package private) String
    readTransform(org.apache.nifi.components.PropertyValue propertyValue)
     
    private String
    readTransform(org.apache.nifi.components.PropertyValue propertyValue, org.apache.nifi.flowfile.FlowFile flowFile)
     
    void
    setup(org.apache.nifi.processor.ProcessContext context)
     

    Methods inherited from class org.apache.nifi.processor.AbstractProcessor

    onTrigger, onTrigger

    Methods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor

    getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getRelationships, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue

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

    equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, 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.processor.Processor

    isStateful, migrateProperties, migrateRelationships
  • Field Details

    • JOLT_TRANSFORM

      public static final org.apache.nifi.components.PropertyDescriptor JOLT_TRANSFORM
    • JOLT_SPEC

      public static final org.apache.nifi.components.PropertyDescriptor JOLT_SPEC
    • CUSTOM_CLASS

      public static final org.apache.nifi.components.PropertyDescriptor CUSTOM_CLASS
    • MODULES

      public static final org.apache.nifi.components.PropertyDescriptor MODULES
    • TRANSFORM_CACHE_SIZE

      static final org.apache.nifi.components.PropertyDescriptor TRANSFORM_CACHE_SIZE
    • PROPERTIES

      static final List<org.apache.nifi.components.PropertyDescriptor> PROPERTIES
    • transformCache

      private com.github.benmanes.caffeine.cache.Cache<Optional<String>,com.bazaarvoice.jolt.JoltTransform> transformCache
      It is a cache for transform objects. It keeps values indexed by jolt specification string. For some cases the key could be empty. It means that it represents default transform (e.g. for custom transform when there is no jolt-record-spec specified).
  • Constructor Details

    • AbstractJoltTransform

      public AbstractJoltTransform()
  • Method Details

    • setup

      @OnScheduled public void setup(org.apache.nifi.processor.ProcessContext context)
    • customValidate

      protected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext validationContext)
      Overrides:
      customValidate in class org.apache.nifi.components.AbstractConfigurableComponent
    • getTransform

      com.bazaarvoice.jolt.JoltTransform getTransform(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.flowfile.FlowFile flowFile)
    • createTransform

      com.bazaarvoice.jolt.JoltTransform createTransform(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.flowfile.FlowFile flowFile) throws Exception
      Throws:
      Exception
    • readTransform

      private String readTransform(org.apache.nifi.components.PropertyValue propertyValue, org.apache.nifi.flowfile.FlowFile flowFile)
    • readTransform

      String readTransform(org.apache.nifi.components.PropertyValue propertyValue)
    • getJarFilenameFilter

      protected FilenameFilter getJarFilenameFilter()