public static class Utils.CountHelper<T> extends RichFlatMapFunction<T,Long>
Constructor and Description |
---|
Utils.CountHelper(String id) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flatMap(T value,
Collector<Long> out) |
getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
public Utils.CountHelper(String id)
public void flatMap(T value, Collector<Long> out) throws Exception
flatMap
in interface FlatMapFunction<T,Long>
flatMap
in class RichFlatMapFunction<T,Long>
Exception
public void close() throws Exception
close
in interface RichFunction
close
in class AbstractRichFunction
Exception
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.