Class WordCount.FormatAsTextFn
- All Implemented Interfaces:
Serializable,org.apache.beam.sdk.transforms.display.HasDisplayData,org.apache.beam.sdk.transforms.ProcessFunction<org.apache.beam.sdk.values.KV<String,,Long>, String> org.apache.beam.sdk.transforms.SerializableFunction<org.apache.beam.sdk.values.KV<String,Long>, String>
- Enclosing class:
WordCount
public static class WordCount.FormatAsTextFn
extends org.apache.beam.sdk.transforms.SimpleFunction<org.apache.beam.sdk.values.KV<String,Long>,String>
A SimpleFunction that converts a Word and Count into a printable string.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.beam.sdk.transforms.SimpleFunction
fromSerializableFunctionWithOutputTypeMethods inherited from class org.apache.beam.sdk.transforms.InferableFunction
fromProcessFunctionWithOutputType, getInputTypeDescriptor, getOutputTypeDescriptor, populateDisplayData
-
Constructor Details
-
FormatAsTextFn
public FormatAsTextFn()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceorg.apache.beam.sdk.transforms.ProcessFunction<org.apache.beam.sdk.values.KV<String,Long>, String> - Specified by:
applyin interfaceorg.apache.beam.sdk.transforms.SerializableFunction<org.apache.beam.sdk.values.KV<String,Long>, String> - Overrides:
applyin classorg.apache.beam.sdk.transforms.SimpleFunction<org.apache.beam.sdk.values.KV<String,Long>, String>
-