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(Operator<Record>... inputs)
Sets one or several inputs (union).
|
ReduceOperator.Builder |
input(Operator<Record> input)
Sets the input.
|
ReduceOperator.Builder |
inputs(List<Operator<Record>> inputs)
Sets the inputs.
|
ReduceOperator.Builder |
keyField(Class<? extends Key<?>> keyClass,
int keyColumn)
Adds additional key field.
|
ReduceOperator.Builder |
name(String name)
Sets the name of this operator.
|
ReduceOperator.Builder |
secondaryOrder(Ordering order)
Sets the order of the elements within a group.
|
ReduceOperator.Builder |
setBroadcastVariable(String name,
Operator<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,Operator<Record>> inputs)
Binds multiple broadcast variables.
|
public ReduceOperator.Builder keyField(Class<? extends Key<?>> keyClass, int keyColumn)
keyClass - The class of the key data type.keyColumn - The position of the key.public ReduceOperator.Builder secondaryOrder(Ordering order)
order - The order for the elements in a group.public ReduceOperator.Builder input(Operator<Record> input)
input - The input.public ReduceOperator.Builder input(Operator<Record>... inputs)
inputs - public ReduceOperator.Builder inputs(List<Operator<Record>> inputs)
inputs - public ReduceOperator.Builder setBroadcastVariable(String name, Operator<Record> input)
root to a
variable used by the UDF wrapped in this operator.public ReduceOperator.Builder setBroadcastVariables(Map<String,Operator<Record>> inputs)
public ReduceOperator.Builder name(String name)
name - public ReduceOperator build()
Copyright © 2015 The Apache Software Foundation. All rights reserved.