@Internal
public class GenerateInitialPartitionsAction
extends java.lang.Object
DetectNewPartitionsDoFn.| Constructor and Description |
|---|
GenerateInitialPartitionsAction(ChangeStreamMetrics metrics,
ChangeStreamDao changeStreamDao) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.transforms.DoFn.ProcessContinuation |
run(org.apache.beam.sdk.transforms.DoFn.OutputReceiver<PartitionRecord> receiver,
org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<org.apache.beam.sdk.io.range.OffsetRange,java.lang.Long> tracker,
org.apache.beam.sdk.transforms.splittabledofn.ManualWatermarkEstimator<org.joda.time.Instant> watermarkEstimator,
org.joda.time.Instant startTime)
The very first step of the pipeline when there are no partitions being streamed yet.
|
public GenerateInitialPartitionsAction(ChangeStreamMetrics metrics, ChangeStreamDao changeStreamDao)
public org.apache.beam.sdk.transforms.DoFn.ProcessContinuation run(org.apache.beam.sdk.transforms.DoFn.OutputReceiver<PartitionRecord> receiver, org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<org.apache.beam.sdk.io.range.OffsetRange,java.lang.Long> tracker, org.apache.beam.sdk.transforms.splittabledofn.ManualWatermarkEstimator<org.joda.time.Instant> watermarkEstimator, org.joda.time.Instant startTime)
DoFn.ProcessContinuation.resume() if the stream continues, otherwise DoFn.ProcessContinuation.stop()