Interface StepProcessor


public interface StepProcessor
The Step Processor contains the main processing logic of the custom step.

One of the 3 main builders required for a custom step:

  1. StepConfigurationBuilder
  2. StepProcessorBuilder
  3. CustomTypeMetadataBuilder
Since:
2.0.0
See Also:
  • Method Details

    • getStepProcessorIndexMap

      Map<String,StepProcessorIndex> getStepProcessorIndexMap()
    • getStepProcessorFunction

      Optional<StepProcessorFunction> getStepProcessorFunction(String outputId)
      Returns the processor function to be used by the custom step. Processor returned is based on the output ID specified.
      Parameters:
      outputId - Output ID associated with the processor
      Returns:
      StepProcessorFunction associated with the specified output ID
    • getStepResource

      <T> Optional<StepResource<T>> getStepResource(String resourceId, Class<T> resourceClass)
      Returns the resource to be used by the custom step.

      Resources refer to any shared resources that can be created and used throughout processing. The resource should be closed after processing.

      Type Parameters:
      T - Type of step resource
      Parameters:
      resourceId - ID of resource to be returned
      resourceClass - Class of the step resource
      Returns:
      StepResource with specified ID
    • close

      void close()
      Closes the step processor.