public class LongXorReduce extends ReduceSameTypeOperation<org.apache.hadoop.io.LongWritable>
| Modifier and Type | Field and Description | 
|---|---|
| static LongXorReduce | INSTANCELong 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) | 
reduceMergepublic static final LongXorReduce INSTANCE
public org.apache.hadoop.io.LongWritable createInitialValue()
ReduceOperationpublic org.apache.hadoop.io.LongWritable reduce(org.apache.hadoop.io.LongWritable curValue,
                                                org.apache.hadoop.io.LongWritable valueToReduce)
ReduceOperationcurValue - Partial value into which to reduce and store the resultvalueToReduce - Single value to be reducedpublic void write(DataOutput out) throws IOException
IOExceptionpublic void readFields(DataInput in) throws IOException
IOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.