Package io.trino.operator
Interface WorkProcessor.Transformation<T,R>
-
- All Known Subinterfaces:
PageJoiner
- All Known Implementing Classes:
DefaultPageJoiner
- Enclosing interface:
- WorkProcessor<T>
public static interface WorkProcessor.Transformation<T,R>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WorkProcessor.TransformationState<R>process(T element)Processes input elements and returns current transformation state.
-
-
-
Method Detail
-
process
WorkProcessor.TransformationState<R> process(@Nullable T element)
Processes input elements and returns current transformation state.- Parameters:
element- an element to be transformed. Will be null when there are no more elements. In such case transformation should finish processing and flush any remaining data.- Returns:
- the current transformation state, optionally bearing a result
- See Also:
WorkProcessor.TransformationState.needsMoreData(),WorkProcessor.TransformationState.blocked(ListenableFuture),WorkProcessor.TransformationState.yielded(),WorkProcessor.TransformationState.ofResult(Object),WorkProcessor.TransformationState.ofResult(Object, boolean),WorkProcessor.TransformationState.finished()
-
-