@Internal public class SelectByMinFunction<T extends org.apache.flink.api.java.tuple.Tuple> extends Object implements org.apache.flink.api.common.functions.ReduceFunction<T>
Constructor and Description |
---|
SelectByMinFunction(org.apache.flink.api.java.typeutils.TupleTypeInfo<T> type,
int... fields)
Constructor which is overwriting the default constructor.
|
Modifier and Type | Method and Description |
---|---|
T |
reduce(T value1,
T value2)
Reduce implementation, returns smaller tuple or value1 if both tuples are
equal.
|
public SelectByMinFunction(org.apache.flink.api.java.typeutils.TupleTypeInfo<T> type, int... fields)
type
- Types of tuple whether to check if given fields are key types.fields
- Array of integers which are used as key for comparison. The order of indexes
is regarded in the reduce function. First index has highest priority and last index has
least priority.public T reduce(T value1, T value2) throws Exception
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.