public class HitCounterProgram extends AbstractMapReduce
| Modifier and Type | Class and Description |
|---|---|
static class |
HitCounterProgram.Counter
A reducer that sums up the counts for each key.
|
static class |
HitCounterProgram.Emitter
A mapper that emits each url or path with a value of 1.
|
| Constructor and Description |
|---|
HitCounterProgram() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize() |
beforeSubmit, configure, configure, destroy, getConfigurer, getContext, initialize, onFinish, setDescription, setDriverResources, setInputDataset, setMapperResources, setName, setProperties, setReducerResources, useStreamInput, useStreamInput, useStreamInputusePlugin, usePlugin, usePluginClass, usePluginClassaddDatasetModule, addDatasetType, addStream, addStream, createDataset, createDataset, createDataset, createDatasetpublic void initialize()
throws Exception
initialize in class AbstractMapReduceExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.