public static class ETLMapReduce.ETLReducer extends Reducer implements ProgramLifecycle<MapReduceTaskContext<Object,Object>>
Reducer.Context| Constructor and Description |
|---|
ETLMapReduce.ETLReducer() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
initialize(MapReduceTaskContext<Object,Object> context) |
protected void |
reduce(Object key,
Iterable values,
Reducer.Context context) |
public void initialize(MapReduceTaskContext<Object,Object> context) throws Exception
initialize in interface ProgramLifecycle<MapReduceTaskContext<Object,Object>>Exceptionprotected void reduce(Object key, Iterable values, Reducer.Context context) throws IOException, InterruptedException
reduce in class ReducerIOExceptionInterruptedExceptionpublic void destroy()
destroy in interface ProgramLifecycle<MapReduceTaskContext<Object,Object>>Copyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.