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 Details

    • apply

      public Stream<Path> apply(Stream<Path> representations)
      Description copied from interface: Translator
      Apply the translation for all representations.
      Specified by:
      apply in interface Translator
      Parameters:
      representations - Stream of intermediate representations to translate
      Returns:
      Stream of translated intermediate representations