public class ReaderInvocationUtil<OutputT,ReaderT extends Source.Reader<OutputT>>
extends java.lang.Object
Source.Reader
methods that might require a MetricsContainerImpl
to be active. Source.Reader decorator which registers MetricsContainerImpl
. It update
metrics to Flink metric and accumulator in start and advance.Constructor and Description |
---|
ReaderInvocationUtil(java.lang.String stepName,
PipelineOptions options,
FlinkMetricContainer container) |
Modifier and Type | Method and Description |
---|---|
boolean |
invokeAdvance(ReaderT reader) |
boolean |
invokeStart(ReaderT reader) |
public ReaderInvocationUtil(java.lang.String stepName, PipelineOptions options, FlinkMetricContainer container)