Class GenerateInitialPartitionsAction


  • @Internal
    public class GenerateInitialPartitionsAction
    extends java.lang.Object
    Class to generate first set of outputs for DetectNewPartitionsDoFn.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run​(org.apache.beam.sdk.transforms.DoFn.OutputReceiver<PartitionRecord> receiver, org.joda.time.Instant startTime)
      The very first step of the pipeline when there are no partitions being streamed yet.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenerateInitialPartitionsAction

        public GenerateInitialPartitionsAction​(ChangeStreamMetrics metrics,
                                               ChangeStreamDao changeStreamDao,
                                               @Nullable
                                               org.joda.time.Instant endTime)
    • Method Detail

      • run

        public void run​(org.apache.beam.sdk.transforms.DoFn.OutputReceiver<PartitionRecord> receiver,
                        org.joda.time.Instant startTime)
        The very first step of the pipeline when there are no partitions being streamed yet. We want to get an initial list of partitions to stream and output them.