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