@InternalExtensionOnly public static class CloudBigtableIO.CloudBigtableSingleTableBufferedWriteFn extends AbstractCloudBigtableTableDoFn<InputType,Void>
DoFn that can write either a bounded or unbounded PCollection of Mutations to a table specified via a CloudBigtableTableConfiguration using the
BufferedMutator.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.WindowedContextconfig, connection, DOFN_LOG| Constructor and Description |
|---|
CloudBigtableSingleTableBufferedWriteFn(CloudBigtableTableConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
finishBundle(DoFn.FinishBundleContext context)
Closes the
BufferedMutator and Connection. |
void |
processElement(DoFn.ProcessContext context)
Performs an asynchronous mutation via
BufferedMutator.mutate(Mutation). |
void |
setupBufferedMutator(DoFn.StartBundleContext context) |
getConfig, getConnection, logExceptions, logRetriesExhaustedWithDetailsException, populateDisplayData, rethrowExceptiongetAllowedTimestampSkew, getInputTypeDescriptor, getOutputTypeDescriptor, prepareForProcessingpublic CloudBigtableSingleTableBufferedWriteFn(CloudBigtableTableConfiguration config)
@DoFn.StartBundle public void setupBufferedMutator(DoFn.StartBundleContext context) throws IOException
IOException@DoFn.ProcessElement public void processElement(DoFn.ProcessContext context) throws Exception
BufferedMutator.mutate(Mutation).Exception@DoFn.FinishBundle public void finishBundle(DoFn.FinishBundleContext context) throws Exception
BufferedMutator and Connection.Exception