Package org.apache.beam.sdk.transforms
Interface SerializableFunction<InputT,OutputT>
-
- Type Parameters:
InputT
- input value typeOutputT
- output value type
- All Superinterfaces:
ProcessFunction<InputT,OutputT>
,java.io.Serializable
- All Known Implementing Classes:
PAssert.MatcherCheckerFn
,SimpleFunction
,WithFailures.ExceptionAsMapHandler
,WithFailures.ThrowableHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SerializableFunction<InputT,OutputT> extends ProcessFunction<InputT,OutputT>, java.io.Serializable
A function that computes an output value of typeOutputT
from an input value of typeInputT
, isSerializable
, and does not allow checked exceptions to be declared.To allow checked exceptions, implement the superinterface
ProcessFunction
instead. To allow more robustCoder
inference, seeInferableFunction
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputT
apply(InputT input)
Returns the result of invoking this function on the given input.
-