public abstract class ReduceWithKeyFunction extends AbstractArrayModelFunction implements GenericReducer<Value[],Value[]>
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_INDEX_PARAM_KEY |
static String |
KEY_TYPE_PARAM_KEY |
| Constructor and Description |
|---|
ReduceWithKeyFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
combine(Iterator<Value[]> records,
Collector<Value[]> out) |
void |
combine(Value key,
Iterator<Value[]> records,
Collector<Value[]> out) |
Method |
getUDFMethod() |
void |
open(Configuration parameters) |
void |
reduce(Iterator<Value[]> records,
Collector<Value[]> out) |
abstract void |
reduce(Value key,
Iterator<Value[]> records,
Collector<Value[]> out) |
getDataTypesclose, getIterationRuntimeContext, getRuntimeContext, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getRuntimeContext, setRuntimeContextpublic static final String KEY_INDEX_PARAM_KEY
public static final String KEY_TYPE_PARAM_KEY
public final void reduce(Iterator<Value[]> records, Collector<Value[]> out) throws Exception
reduce in interface GenericReducer<Value[],Value[]>Exceptionpublic final void combine(Iterator<Value[]> records, Collector<Value[]> out) throws Exception
combine in interface GenericReducer<Value[],Value[]>Exceptionpublic void open(Configuration parameters) throws Exception
open in interface Functionopen in class AbstractFunctionExceptionpublic final Method getUDFMethod()
getUDFMethod in class AbstractArrayModelFunctionCopyright © 2013–2014. All rights reserved.