S - Primitive Writable type, which has its type opspublic class CollectPrimitiveReduceOperation<S> extends KryoWrappedReduceOperation<S,WArrayList<S>>
| Constructor and Description |
|---|
CollectPrimitiveReduceOperation()
For reflection only
|
CollectPrimitiveReduceOperation(PrimitiveTypeOps<S> typeOps) |
| Modifier and Type | Method and Description |
|---|---|
WArrayList<S> |
createList() |
WArrayList<S> |
createValue()
Look at ReduceOperation.createValue.
|
void |
readFields(DataInput in) |
void |
reduce(WArrayList<S> reduceInto,
S value)
Look at ReduceOperation.reduce.
|
void |
reduceMerge(WArrayList<S> reduceInto,
WArrayList<S> toReduce)
Look at ReduceOperation.reduceMerge.
|
void |
write(DataOutput out) |
createInitialValue, reduce, reduceMergepublic CollectPrimitiveReduceOperation()
public CollectPrimitiveReduceOperation(PrimitiveTypeOps<S> typeOps)
public WArrayList<S> createValue()
KryoWrappedReduceOperationcreateValue in class KryoWrappedReduceOperation<S,WArrayList<S>>public void reduce(WArrayList<S> reduceInto, S value)
KryoWrappedReduceOperationreduce in class KryoWrappedReduceOperation<S,WArrayList<S>>reduceInto - Partial value into which to reduce and store the resultvalue - Single value to be reducedpublic void reduceMerge(WArrayList<S> reduceInto, WArrayList<S> toReduce)
KryoWrappedReduceOperationreduceMerge in class KryoWrappedReduceOperation<S,WArrayList<S>>reduceInto - Partial value into which to reduce and store the resulttoReduce - Partial value to be reducedpublic WArrayList<S> createList()
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class KryoWrappedReduceOperation<S,WArrayList<S>>IOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class KryoWrappedReduceOperation<S,WArrayList<S>>IOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.