@InterfaceAudience.Public @InterfaceStability.Stable @FunctionalInterface public interface Function<X,T>
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Called once to properly close resources when function instance is stopped.
|
default void |
initialize(Context context)
Called once to initialize resources when function instance is started.
|
T |
process(X input,
Context context)
Process the input.
|
T process(X input, Context context) throws Exception
Exceptiondefault void initialize(Context context) throws Exception
context - The Function contextExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.