public abstract class MapFunction extends AbstractArrayModelFunction implements GenericMapper<Value[],Value[]>
| Constructor and Description |
|---|
MapFunction() |
| Modifier and Type | Method and Description |
|---|---|
Method |
getUDFMethod() |
abstract void |
map(Value[] record,
Collector<Value[]> out)
This method must be implemented to provide a user implementation of a mapper.
|
getDataTypesclose, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getRuntimeContext, open, setRuntimeContextpublic abstract void map(Value[] record, Collector<Value[]> out) throws Exception
map in interface GenericMapper<Value[],Value[]>record - The record to be mapped.out - A collector that collects all output records.Exception - Implementations may forward exceptions, which are caught by the runtime. When the
runtime catches an exception, it aborts the map task and lets the fail-over logic
decide whether to retry the mapper execution.public Method getUDFMethod()
getUDFMethod in class AbstractArrayModelFunctionCopyright © 2013–2014. All rights reserved.