Package org.apache.nemo.examples.beam
Class BeamWordCount.FormatAsTextFn
- java.lang.Object
-
- org.apache.beam.sdk.transforms.InferableFunction<InputT,OutputT>
-
- org.apache.beam.sdk.transforms.SimpleFunction<org.apache.beam.sdk.values.KV<java.lang.String,java.lang.Long>,java.lang.String>
-
- org.apache.nemo.examples.beam.BeamWordCount.FormatAsTextFn
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
,org.apache.beam.sdk.transforms.ProcessFunction<org.apache.beam.sdk.values.KV<java.lang.String,java.lang.Long>,java.lang.String>
,org.apache.beam.sdk.transforms.SerializableFunction<org.apache.beam.sdk.values.KV<java.lang.String,java.lang.Long>,java.lang.String>
- Enclosing class:
- BeamWordCount
public static final class BeamWordCount.FormatAsTextFn extends org.apache.beam.sdk.transforms.SimpleFunction<org.apache.beam.sdk.values.KV<java.lang.String,java.lang.Long>,java.lang.String>
A SimpleFunction that converts a Word and Count into a printable string.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormatAsTextFn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
apply(org.apache.beam.sdk.values.KV<java.lang.String,java.lang.Long> input)
-
Methods inherited from class org.apache.beam.sdk.transforms.SimpleFunction
fromSerializableFunctionWithOutputType
-
-
-
-
Method Detail
-
apply
public java.lang.String apply(org.apache.beam.sdk.values.KV<java.lang.String,java.lang.Long> input)
- Specified by:
apply
in interfaceorg.apache.beam.sdk.transforms.ProcessFunction<org.apache.beam.sdk.values.KV<java.lang.String,java.lang.Long>,java.lang.String>
- Specified by:
apply
in interfaceorg.apache.beam.sdk.transforms.SerializableFunction<org.apache.beam.sdk.values.KV<java.lang.String,java.lang.Long>,java.lang.String>
- Overrides:
apply
in classorg.apache.beam.sdk.transforms.SimpleFunction<org.apache.beam.sdk.values.KV<java.lang.String,java.lang.Long>,java.lang.String>
-
-