@Internal public class SelectByMinFunction<T extends Tuple> extends Object implements ReduceFunction<T>
Constructor and Description |
---|
SelectByMinFunction(TupleTypeInfo<T> type,
int... fields)
Constructor which is overwriting the default constructor.
|
public SelectByMinFunction(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
reduce
in interface ReduceFunction<T extends Tuple>
Exception
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.