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, reduceMerge
public PriorityQueue<S> createValue()
KryoWrappedReduceOperation
createValue
in class KryoWrappedReduceOperation<S extends Comparable<S>,PriorityQueue<S extends Comparable<S>>>
public void reduce(PriorityQueue<S> heap, S value)
KryoWrappedReduceOperation
reduce
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)
KryoWrappedReduceOperation
reduceMerge
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.Writable
write
in class KryoWrappedReduceOperation<S extends Comparable<S>,PriorityQueue<S extends Comparable<S>>>
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class KryoWrappedReduceOperation<S extends Comparable<S>,PriorityQueue<S extends Comparable<S>>>
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.