@Internal public class CombineFnUtil extends java.lang.Object
| Constructor and Description |
|---|
CombineFnUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <K,InputT,AccumT,OutputT> |
bindContext(CombineWithContext.CombineFnWithContext<InputT,AccumT,OutputT> combineFn,
StateContext<?> stateContext)
Returns the partial application of the
CombineWithContext.CombineFnWithContext to a specific context to
produce a Combine.CombineFn. |
static <InputT,AccumT,OutputT> |
toFnWithContext(CombineFnBase.GlobalCombineFn<InputT,AccumT,OutputT> globalCombineFn)
Return a
CombineWithContext.CombineFnWithContext from the given CombineFnBase.GlobalCombineFn. |
public static <K,InputT,AccumT,OutputT> Combine.CombineFn<InputT,AccumT,OutputT> bindContext(CombineWithContext.CombineFnWithContext<InputT,AccumT,OutputT> combineFn, StateContext<?> stateContext)
CombineWithContext.CombineFnWithContext to a specific context to
produce a Combine.CombineFn.
The returned Combine.CombineFn cannot be serialized.
public static <InputT,AccumT,OutputT> CombineWithContext.CombineFnWithContext<InputT,AccumT,OutputT> toFnWithContext(CombineFnBase.GlobalCombineFn<InputT,AccumT,OutputT> globalCombineFn)
CombineWithContext.CombineFnWithContext from the given CombineFnBase.GlobalCombineFn.