public static class DataQualityApp.AggregationMapper extends Mapper<LongWritable,co.cask.cdap.api.stream.GenericStreamEventData<co.cask.cdap.api.data.format.StructuredRecord>,Text,DataQualityWritable> implements ProgramLifecycle<MapReduceContext>
Mapper.Context| Constructor and Description |
|---|
DataQualityApp.AggregationMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
initialize(MapReduceContext mapReduceContext) |
void |
map(LongWritable key,
co.cask.cdap.api.stream.GenericStreamEventData<co.cask.cdap.api.data.format.StructuredRecord> event,
Mapper.Context context) |
public void initialize(MapReduceContext mapReduceContext) throws Exception
initialize in interface ProgramLifecycle<MapReduceContext>Exceptionpublic void map(LongWritable key, co.cask.cdap.api.stream.GenericStreamEventData<co.cask.cdap.api.data.format.StructuredRecord> event, Mapper.Context context) throws IOException, InterruptedException
public void destroy()
destroy in interface ProgramLifecycle<MapReduceContext>Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.