R - The type of reference used to select data from input tuples in the context.F - The type of ConsumerFunction wrapped by the context.public static class ConsumerFunctionContext.Builder<R,F extends ConsumerFunction> extends FunctionContext.Builder<F>
ConsumerFunctionContext.| Constructor and Description |
|---|
Builder()
Create a
Builder to configure a new ConsumerFunctionContext. |
Builder(ConsumerFunctionContext<R,F> context)
Create a
Builder to configure a ConsumerFunctionContext. |
| Modifier and Type | Method and Description |
|---|---|
ConsumerFunctionContext<R,F> |
build()
Build the
FunctionContext configured by this Builder. |
ConsumerFunctionContext.Builder<R,F> |
execute(F function)
Sets the
Function to be wrapped by the context and returns this
Builder for further configuration. |
ConsumerFunctionContext<R,F> |
getContext()
Get the
FunctionContext configured by this Builder. |
boolean |
isSelected()
Tests whether the selection references have been configured.
|
ConsumerFunctionContext.Builder<R,F> |
select(R... newSelection)
Sets the references to be used by the
ConsumerFunctionContext to select
input data and returns this Builder for further configuration. |
isExecutedpublic Builder()
Builder to configure a new ConsumerFunctionContext.public Builder(ConsumerFunctionContext<R,F> context)
Builder to configure a ConsumerFunctionContext.context - ConsumerFunctionContext to be configured.public ConsumerFunctionContext.Builder<R,F> select(R... newSelection)
ConsumerFunctionContext to select
input data and returns this Builder for further configuration.newSelection - References to select data from an input Tuple.Builder.public ConsumerFunctionContext.Builder<R,F> execute(F function)
FunctionContext.BuilderFunction to be wrapped by the context and returns this
Builder for further configuration.execute in class FunctionContext.Builder<F extends ConsumerFunction>function - Function to be wrapped by the context.Builder.public boolean isSelected()
select(R...) is called, then true.public ConsumerFunctionContext<R,F> build()
FunctionContext.BuilderFunctionContext configured by this Builder.build in class FunctionContext.Builder<F extends ConsumerFunction>FunctionContextpublic ConsumerFunctionContext<R,F> getContext()
FunctionContext.BuildergetContext in class FunctionContext.Builder<F extends ConsumerFunction>FunctionContextCopyright © 2017. All rights reserved.