S
- Input type of LDoFnT
- Output type of LDoFnpublic interface LDoFnContext<S,T>
Modifier and Type | Method and Description |
---|---|
S |
element()
Get the input element
|
void |
emit(T t)
Emit t to the output
|
org.apache.hadoop.conf.Configuration |
getConfiguration()
Get the current Hadoop
Configuration |
org.apache.hadoop.mapreduce.TaskInputOutputContext |
getContext()
Get the underlying
TaskInputOutputContext (for special cases) |
void |
increment(Enum<?> counterName)
Increment a counter by 1
|
void |
increment(Enum<?> counterName,
long value)
Increment a counter by value
|
void |
increment(String groupName,
String counterName)
Increment a counter by 1
|
void |
increment(String groupName,
String counterName,
long value)
Increment a counter by value
|
S element()
void emit(T t)
org.apache.hadoop.mapreduce.TaskInputOutputContext getContext()
TaskInputOutputContext
(for special cases)org.apache.hadoop.conf.Configuration getConfiguration()
Configuration
void increment(String groupName, String counterName, long value)
void increment(Enum<?> counterName)
void increment(Enum<?> counterName, long value)
Copyright © 2016 The Apache Software Foundation. All rights reserved.