Package org.eolang.jeo
Class ParallelTranslator
java.lang.Object
org.eolang.jeo.ParallelTranslator
- All Implemented Interfaces:
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
-
Method Details
-
apply
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
-