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:
- StepConfigurationBuilder
- StepProcessorBuilder
- CustomTypeMetadataBuilder
- Since:
- 2.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the step processor.getStepProcessorFunction
(String outputId) Returns the processor function to be used by the custom step.<T> Optional<StepResource<T>>
getStepResource
(String resourceId, Class<T> resourceClass) Returns the resource to be used by the custom step.
-
Method Details
-
getStepProcessorIndexMap
Map<String,StepProcessorIndex> getStepProcessorIndexMap() -
getStepProcessorFunction
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
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 returnedresourceClass
- Class of the step resource- Returns:
StepResource
with specified ID
-
close
void close()Closes the step processor.
-