Package | Description |
---|---|
org.apache.flink.statefun.sdk.match |
Modifier and Type | Method and Description |
---|---|
MatchBinder |
MatchBinder.otherwise(java.util.function.BiConsumer<Context,java.lang.Object> action)
Binds a default action for inputs that fail to match any of the patterns bind via the
predicate(Class, Predicate, BiConsumer) and predicate(Class, BiConsumer) methods. |
<T> MatchBinder |
MatchBinder.predicate(java.lang.Class<T> type,
java.util.function.BiConsumer<Context,T> action)
Binds a simple type pattern which matches on the input's type.
|
<T> MatchBinder |
MatchBinder.predicate(java.lang.Class<T> type,
java.util.function.Predicate<T> predicate,
java.util.function.BiConsumer<Context,T> action)
Binds a pattern which matches on a function's input type, as well as a conditional predicate on
the input object's state.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
StatefulMatchFunction.configure(MatchBinder binder)
Configures the patterns to match for the function's inputs.
|
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.