public class AndReduce extends ReduceSameTypeOperation<org.apache.hadoop.io.BooleanWritable>
Constructor and Description |
---|
AndReduce() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.BooleanWritable |
createInitialValue()
Return new reduced value which is neutral to reduce operation.
|
void |
readFields(DataInput in) |
org.apache.hadoop.io.BooleanWritable |
reduce(org.apache.hadoop.io.BooleanWritable curValue,
org.apache.hadoop.io.BooleanWritable valueToReduce)
Add a new value.
|
void |
write(DataOutput out) |
reduceMerge
public static final AndReduce INSTANCE
public org.apache.hadoop.io.BooleanWritable createInitialValue()
ReduceOperation
public org.apache.hadoop.io.BooleanWritable reduce(org.apache.hadoop.io.BooleanWritable curValue, org.apache.hadoop.io.BooleanWritable 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.