Package com.itextpdf.pdfocr.onnxtr.util
Interface IBatchProcessorR>
- Type Parameters:
-
T
- input batch type -
R
- output batch type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Batch processor mapper interface. This is called by
BatchProcessingGenerator
.
-
Method Summary
Modifier and TypeMethodDescriptionprocessBatch
(List<T> batch) Processes a batch of input items and produces a corresponding batch of output items.
-
Method Details
-
processBatch
Processes a batch of input items and produces a corresponding batch of output items.- Parameters:
-
batch
- the list of input items to process - Returns:
- a list of output items corresponding to the input batch. The size and ordering of the output list should correspond to the input list, unless otherwise specified by the implementation
-