public abstract static class MergeIterator.Reducer<In,Out>
extends java.lang.Object
| Constructor and Description | 
|---|
| Reducer() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()May be overridden by implementations that require cleaning up after use | 
| protected abstract Out | getReduced() | 
| protected void | onKeyChange()Called at the beginning of each new key, before any reduce is called. | 
| abstract void | reduce(int idx,
      In current)combine this object with the previous ones. | 
| boolean | trivialReduceIsTrivial() | 
public boolean trivialReduceIsTrivial()
public abstract void reduce(int idx,
                            In current)
protected abstract Out getReduced()
protected void onKeyChange()
public void close()
Copyright © 2018 The Apache Software Foundation