public class OpAdapter<InT,OutT,K> extends java.lang.Object implements org.apache.samza.operators.functions.AsyncFlatMapFunction<OpMessage<InT>,OpMessage<OutT>>, org.apache.samza.operators.functions.WatermarkFunction<OpMessage<OutT>>, org.apache.samza.operators.functions.ScheduledFunction<KeyedTimerData<K>,OpMessage<OutT>>, java.io.Serializable
Op for BEAM in the Samza AsyncFlatMapFunction.
This class is initialized once for each Op within a Task for each Task.| Modifier and Type | Method and Description |
|---|---|
static <InT,OutT,K> |
adapt(Op<InT,OutT,K> op,
TranslationContext ctx) |
java.util.concurrent.CompletionStage<java.util.Collection<OpMessage<OutT>>> |
apply(OpMessage<InT> message) |
void |
close() |
java.lang.Long |
getOutputWatermark() |
void |
init(org.apache.samza.context.Context context) |
java.util.Collection<OpMessage<OutT>> |
onCallback(KeyedTimerData<K> keyedTimerData,
long time) |
java.util.Collection<OpMessage<OutT>> |
processWatermark(long time) |
void |
schedule(org.apache.samza.operators.Scheduler<KeyedTimerData<K>> timerRegistry) |
public static <InT,OutT,K> org.apache.samza.operators.functions.AsyncFlatMapFunction<OpMessage<InT>,OpMessage<OutT>> adapt(Op<InT,OutT,K> op, TranslationContext ctx)
public final void init(org.apache.samza.context.Context context)
init in interface org.apache.samza.operators.functions.InitableFunctionpublic final void schedule(org.apache.samza.operators.Scheduler<KeyedTimerData<K>> timerRegistry)
schedule in interface org.apache.samza.operators.functions.ScheduledFunction<KeyedTimerData<K>,OpMessage<OutT>>public java.util.concurrent.CompletionStage<java.util.Collection<OpMessage<OutT>>> apply(OpMessage<InT> message)
public java.lang.Long getOutputWatermark()
public java.util.Collection<OpMessage<OutT>> onCallback(KeyedTimerData<K> keyedTimerData, long time)
onCallback in interface org.apache.samza.operators.functions.ScheduledFunction<KeyedTimerData<K>,OpMessage<OutT>>public void close()
close in interface org.apache.samza.operators.functions.ClosableFunction