public abstract class StatefulMatchFunction extends java.lang.Object implements StatefulFunction
StatefulMatchFunction is an utility StatefulFunction that supports pattern
matching on function inputs to decide how the inputs should be processed.
Please see MatchBinder for the supported types of pattern matching.
MatchBinder| Constructor and Description |
|---|
StatefulMatchFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
configure(MatchBinder binder)
Configures the patterns to match for the function's inputs.
|
void |
invoke(Context context,
java.lang.Object input)
Invokes this function with a given input.
|
public abstract void configure(MatchBinder binder)
binder - a MatchBinder to bind patterns on.public final void invoke(Context context, java.lang.Object input)
StatefulFunctioninvoke in interface StatefulFunctioncontext - context for the current invocation. The provided context instance should not be
used outside the scope of the current invocation.input - input for the current invocation.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.