R - The type of reference used to select from and project into tuples in this context.F - The type of ConsumerProducerFunction wrapped by the context.public class PassThroughFunctionContext<R,F extends ConsumerProducerFunction> extends ConsumerFunctionContext<R,F>
PassThroughFunctionContext extends a ConsumerFunctionContext to wrap
a ConsumerProducerFunction where the consumed and produced data have the same structure
(they have the same references and types). This is effectively equivalent to a
ConsumerProducerFunctionContext where the selection and projection references must
be identical - PassThroughFunctionContext enforces that constraint.| Modifier and Type | Class and Description |
|---|---|
static class |
PassThroughFunctionContext.Builder<R,F extends ConsumerProducerFunction>
Implementation of the Builder pattern for
PassThroughFunctionContext. |
| Constructor and Description |
|---|
PassThroughFunctionContext()
Default constructor - used for serialisation.
|
PassThroughFunctionContext(F function,
List<R> selection)
Create a
PassThroughFunctionContext that wraps a
ConsumerProducerFunction, using the specified references for selection and projection. |
| Modifier and Type | Method and Description |
|---|---|
void |
project(Tuple<R> tuple,
Object[] values)
Project data into an output
Tuple. |
getSelection, select, setSelectiongetFunction, setFunctionpublic PassThroughFunctionContext()
public PassThroughFunctionContext(F function, List<R> selection)
PassThroughFunctionContext that wraps a
ConsumerProducerFunction, using the specified references for selection and projection.function - ConsumerProducerFunction to be wrapped by the context.selection - References to select and project data.Copyright © 2017. All rights reserved.