Expand description
Core module for Spring Batch functionality.
This module contains the fundamental components that make up the Spring Batch framework. It defines the core abstractions for batch processing, including:
- Item processing: Interfaces for reading, processing, and writing items
- Jobs: Container for a sequence of steps that defines a batch process
- Steps: Individual unit of work in a batch job
§Architecture
The Spring Batch architecture follows a chunking pattern:
- Items are read one by one from a data source using an
ItemReader - Batches of items are processed using an
ItemProcessor - Processed items are written in chunks using an
ItemWriter
This chunking approach provides benefits for performance, restartability, and transaction management.
§Module Structure
item: Core interfaces for reading, processing, and writing itemsjob: Job execution and managementstep: Step definition and execution
Item processing interfaces.
Contains the fundamental interfaces that define the batch processing pipeline:
ItemReader: Reads items one at a time from a data sourceItemProcessor: Processes items from one type to anotherItemWriter: Writes batches of items to a destination
Structs§
- Composite
Item Processor - A composite processor that chains two processors sequentially using static dispatch.
- Composite
Item Processor Builder - Builder for creating a chain of
ItemProcessors using static dispatch. - Composite
Item Writer - A composite writer that fans out the same chunk to two writers sequentially using static dispatch.
- Composite
Item Writer Builder - Builder for creating a fan-out chain of
ItemWriters using static dispatch. - Pass
Through Processor - A pass-through processor that returns items unchanged.
Traits§
- Item
Processor - A trait for processing items.
- Item
Reader - A trait for reading items.
- Item
Writer - A trait for writing items.
Type Aliases§
- Item
Processor Result - Represents the result of processing an item by the processor.
- Item
Reader Result - Represents the result of reading an item from the reader.
- Item
Writer Result - Represents the result of writing items by the writer.