public abstract class SimpleFunction<InputT,OutputT> extends Object implements SerializableFunction<InputT,OutputT>
SerializableFunction which is not a functional interface.
Concrete subclasses allow us to infer type information, which in turn aids
Coder inference.| Constructor and Description |
|---|
SimpleFunction() |
| Modifier and Type | Method and Description |
|---|---|
TypeDescriptor<InputT> |
getInputTypeDescriptor()
Returns a
TypeDescriptor capturing what is known statically
about the input type of this DoFn instance's most-derived
class. |
TypeDescriptor<OutputT> |
getOutputTypeDescriptor()
Returns a
TypeDescriptor capturing what is known statically
about the output type of this DoFn instance's
most-derived class. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic TypeDescriptor<InputT> getInputTypeDescriptor()
TypeDescriptor capturing what is known statically
about the input type of this DoFn instance's most-derived
class.
See getOutputTypeDescriptor() for more discussion.
public TypeDescriptor<OutputT> getOutputTypeDescriptor()
TypeDescriptor capturing what is known statically
about the output type of this DoFn instance's
most-derived class.
In the normal case of a concrete DoFn subclass with
no generic type parameters of its own (including anonymous inner
classes), this will be a complete non-generic type, which is good
for choosing a default output Coder<OutputT> for the output
PCollection<OutputT>.