Package org.eolang.jeo
Class ParallelTranslator
- java.lang.Object
-
- org.eolang.jeo.ParallelTranslator
-
- All Implemented Interfaces:
Translator
public final class ParallelTranslator extends Object implements Translator
Translator that applies a translation to a batch of representations in parallel.This class implements parallel processing of transformations to improve performance. It ensures that each parallel thread has the correct class loader context to avoid class loading issues during concurrent execution.
- Since:
- 0.2.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<Path>
apply(Stream<Path> representations)
Apply the translation for all representations.
-
-
-
Method Detail
-
apply
public Stream<Path> apply(Stream<Path> representations)
Description copied from interface:Translator
Apply the translation for all representations.- Specified by:
apply
in interfaceTranslator
- Parameters:
representations
- Stream of intermediate representations to translate- Returns:
- Stream of translated intermediate representations
-
-