Class TransformWork<I,O>

java.lang.Object
io.trino.operator.TransformWork<I,O>
All Implemented Interfaces:
Work<O>

public final class TransformWork<I,O> extends Object implements Work<O>
  • Constructor Details

    • TransformWork

      public TransformWork(Work<I> work, Function<I,O> transformation)
  • Method Details

    • process

      public boolean process()
      Description copied from interface: Work
      Call the method to do the work. The caller can keep calling this method until it returns true (i.e., the work is done).
      Specified by:
      process in interface Work<I>
      Returns:
      boolean to indicate if the work has finished.
    • getResult

      public O getResult()
      Description copied from interface: Work
      Get the result once the work is done.
      Specified by:
      getResult in interface Work<I>