S - Single value type, objects passed on workerspublic class TopNReduce<S extends Comparable<S>> extends KryoWrappedReduceOperation<S,PriorityQueue<S>>
| Constructor and Description |
|---|
TopNReduce() |
TopNReduce(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
PriorityQueue<S> |
createValue()
Look at ReduceOperation.createValue.
|
void |
readFields(DataInput in) |
void |
reduce(PriorityQueue<S> heap,
S value)
Look at ReduceOperation.reduce.
|
void |
reduceMerge(PriorityQueue<S> reduceInto,
PriorityQueue<S> toReduce)
Look at ReduceOperation.reduceMerge.
|
void |
write(DataOutput out) |
createInitialValue, reduce, reduceMergepublic PriorityQueue<S> createValue()
KryoWrappedReduceOperationcreateValue in class KryoWrappedReduceOperation<S extends Comparable<S>,PriorityQueue<S extends Comparable<S>>>public void reduce(PriorityQueue<S> heap, S value)
KryoWrappedReduceOperationreduce in class KryoWrappedReduceOperation<S extends Comparable<S>,PriorityQueue<S extends Comparable<S>>>heap - Partial value into which to reduce and store the resultvalue - Single value to be reducedpublic void reduceMerge(PriorityQueue<S> reduceInto, PriorityQueue<S> toReduce)
KryoWrappedReduceOperationreduceMerge in class KryoWrappedReduceOperation<S extends Comparable<S>,PriorityQueue<S extends Comparable<S>>>reduceInto - Partial value into which to reduce and store the resulttoReduce - Partial value to be reducedpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class KryoWrappedReduceOperation<S extends Comparable<S>,PriorityQueue<S extends Comparable<S>>>IOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class KryoWrappedReduceOperation<S extends Comparable<S>,PriorityQueue<S extends Comparable<S>>>IOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.