Class InitializeDoFn
java.lang.Object
org.apache.beam.sdk.transforms.DoFn<byte[],PartitionMetadata>
org.apache.beam.sdk.io.gcp.spanner.changestreams.dofn.InitializeDoFn
- All Implemented Interfaces:
Serializable
,HasDisplayData
A DoFn responsible for initializing the change stream Connector. It handles the creation of the
partition metadata table and the insertion of a fake partition (see
InitialPartition.PARTITION_TOKEN
), which will be used to dispatch the change streams query.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.beam.sdk.transforms.DoFn
DoFn.AlwaysFetched, DoFn.BoundedPerElement, DoFn.BundleFinalizer, DoFn.Element, DoFn.FieldAccess, DoFn.FinishBundle, DoFn.FinishBundleContext, DoFn.GetInitialRestriction, DoFn.GetInitialWatermarkEstimatorState, DoFn.GetRestrictionCoder, DoFn.GetSize, DoFn.GetWatermarkEstimatorStateCoder, DoFn.Key, DoFn.MultiOutputReceiver, DoFn.NewTracker, DoFn.NewWatermarkEstimator, DoFn.OnTimer, DoFn.OnTimerContext, DoFn.OnTimerFamily, DoFn.OnWindowExpiration, DoFn.OnWindowExpirationContext, DoFn.OutputReceiver<T>, DoFn.ProcessContext, DoFn.ProcessContinuation, DoFn.ProcessElement, DoFn.RequiresStableInput, DoFn.RequiresTimeSortedInput, DoFn.Restriction, DoFn.Setup, DoFn.SideInput, DoFn.SplitRestriction, DoFn.StartBundle, DoFn.StartBundleContext, DoFn.StateId, DoFn.Teardown, DoFn.TimerFamily, DoFn.TimerId, DoFn.Timestamp, DoFn.TruncateRestriction, DoFn.UnboundedPerElement, DoFn.WatermarkEstimatorState, DoFn.WindowedContext
-
Constructor Summary
ConstructorsConstructorDescriptionInitializeDoFn
(DaoFactory daoFactory, MapperFactory mapperFactory, com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp) -
Method Summary
Modifier and TypeMethodDescriptionvoid
processElement
(DoFn.OutputReceiver<PartitionMetadata> receiver) Methods inherited from class org.apache.beam.sdk.transforms.DoFn
getAllowedTimestampSkew, getInputTypeDescriptor, getOutputTypeDescriptor, populateDisplayData, prepareForProcessing
-
Constructor Details
-
InitializeDoFn
public InitializeDoFn(DaoFactory daoFactory, MapperFactory mapperFactory, com.google.cloud.Timestamp startTimestamp, com.google.cloud.Timestamp endTimestamp)
-
-
Method Details
-
processElement
-