public class FieldCountAggregator extends BatchAggregator<Object,co.cask.cdap.api.data.format.StructuredRecord,co.cask.cdap.api.data.format.StructuredRecord>
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldCountAggregator.Config
Conf for the aggregator.
|
| Modifier and Type | Field and Description |
|---|---|
static PluginClass |
PLUGIN_CLASS |
PLUGIN_TYPE| Constructor and Description |
|---|
FieldCountAggregator(FieldCountAggregator.Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(Object groupKey,
Iterator<co.cask.cdap.api.data.format.StructuredRecord> groupValues,
Emitter<co.cask.cdap.api.data.format.StructuredRecord> emitter) |
void |
configurePipeline(PipelineConfigurer pipelineConfigurer) |
static ETLPlugin |
getPlugin(String fieldName,
String fieldType) |
void |
groupBy(co.cask.cdap.api.data.format.StructuredRecord input,
Emitter<Object> emitter) |
void |
initialize(BatchRuntimeContext context) |
void |
prepareRun(BatchAggregatorContext context) |
destroyonRunFinishpublic static final PluginClass PLUGIN_CLASS
public FieldCountAggregator(FieldCountAggregator.Config config)
public void configurePipeline(PipelineConfigurer pipelineConfigurer) throws IllegalArgumentException
configurePipeline in interface PipelineConfigurableconfigurePipeline in class BatchAggregator<Object,co.cask.cdap.api.data.format.StructuredRecord,co.cask.cdap.api.data.format.StructuredRecord>IllegalArgumentExceptionpublic void prepareRun(BatchAggregatorContext context) throws Exception
prepareRun in class BatchAggregator<Object,co.cask.cdap.api.data.format.StructuredRecord,co.cask.cdap.api.data.format.StructuredRecord>Exceptionpublic void groupBy(co.cask.cdap.api.data.format.StructuredRecord input, Emitter<Object> emitter) throws Exception
Exceptionpublic void aggregate(Object groupKey, Iterator<co.cask.cdap.api.data.format.StructuredRecord> groupValues, Emitter<co.cask.cdap.api.data.format.StructuredRecord> emitter) throws Exception
Exceptionpublic void initialize(BatchRuntimeContext context) throws Exception
initialize in interface StageLifecycle<BatchRuntimeContext>initialize in class BatchAggregator<Object,co.cask.cdap.api.data.format.StructuredRecord,co.cask.cdap.api.data.format.StructuredRecord>ExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.