public class LongXorReduce extends ReduceSameTypeOperation<org.apache.hadoop.io.LongWritable>
Modifier and Type | Field and Description |
---|---|
static LongXorReduce |
INSTANCE
Long XOR, equivalent to l1 ^ l2
|
Constructor and Description |
---|
LongXorReduce()
Constructor used for deserialization only
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.LongWritable |
createInitialValue()
Return new reduced value which is neutral to reduce operation.
|
void |
readFields(DataInput in) |
org.apache.hadoop.io.LongWritable |
reduce(org.apache.hadoop.io.LongWritable curValue,
org.apache.hadoop.io.LongWritable valueToReduce)
Add a new value.
|
void |
write(DataOutput out) |
reduceMerge
public static final LongXorReduce INSTANCE
public org.apache.hadoop.io.LongWritable createInitialValue()
ReduceOperation
public org.apache.hadoop.io.LongWritable reduce(org.apache.hadoop.io.LongWritable curValue, org.apache.hadoop.io.LongWritable valueToReduce)
ReduceOperation
curValue
- Partial value into which to reduce and store the resultvalueToReduce
- Single value to be reducedpublic void write(DataOutput out) throws IOException
IOException
public void readFields(DataInput in) throws IOException
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.