@InterfaceAudience.Public @InterfaceStability.Stable @FunctionalInterface public interface Function<I,O>
| 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.
|
O |
process(I input,
Context context)
Process the input.
|
O process(I input, Context context) throws Exception
Exceptiondefault void initialize(Context context) throws Exception
context - The Function contextExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.