public static class ReduceOperator.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
ReduceOperator |
build()
Creates and returns a ReduceOperator from using the values given
to the builder.
|
ReduceOperator.Builder |
input(org.apache.flink.api.common.operators.Operator<org.apache.flink.types.Record>... inputs)
Sets one or several inputs (union).
|
ReduceOperator.Builder |
input(org.apache.flink.api.common.operators.Operator<org.apache.flink.types.Record> input)
Sets the input.
|
ReduceOperator.Builder |
inputs(List<org.apache.flink.api.common.operators.Operator<org.apache.flink.types.Record>> inputs)
Sets the inputs.
|
ReduceOperator.Builder |
keyField(Class<? extends org.apache.flink.types.Key<?>> keyClass,
int keyColumn)
Adds additional key field.
|
ReduceOperator.Builder |
name(String name)
Sets the name of this operator.
|
ReduceOperator.Builder |
secondaryOrder(org.apache.flink.api.common.operators.Ordering order)
Sets the order of the elements within a group.
|
ReduceOperator.Builder |
setBroadcastVariable(String name,
org.apache.flink.api.common.operators.Operator<org.apache.flink.types.Record> input)
Binds the result produced by a plan rooted at
root to a
variable used by the UDF wrapped in this operator. |
ReduceOperator.Builder |
setBroadcastVariables(Map<String,org.apache.flink.api.common.operators.Operator<org.apache.flink.types.Record>> inputs)
Binds multiple broadcast variables.
|
public ReduceOperator.Builder keyField(Class<? extends org.apache.flink.types.Key<?>> keyClass, int keyColumn)
keyClass - The class of the key data type.keyColumn - The position of the key.public ReduceOperator.Builder secondaryOrder(org.apache.flink.api.common.operators.Ordering order)
order - The order for the elements in a group.public ReduceOperator.Builder input(org.apache.flink.api.common.operators.Operator<org.apache.flink.types.Record> input)
input - The input.public ReduceOperator.Builder input(org.apache.flink.api.common.operators.Operator<org.apache.flink.types.Record>... inputs)
inputs - public ReduceOperator.Builder inputs(List<org.apache.flink.api.common.operators.Operator<org.apache.flink.types.Record>> inputs)
inputs - public ReduceOperator.Builder setBroadcastVariable(String name, org.apache.flink.api.common.operators.Operator<org.apache.flink.types.Record> input)
root to a
variable used by the UDF wrapped in this operator.public ReduceOperator.Builder setBroadcastVariables(Map<String,org.apache.flink.api.common.operators.Operator<org.apache.flink.types.Record>> inputs)
public ReduceOperator.Builder name(String name)
name - public ReduceOperator build()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.