Serializable, HasDisplayDatapublic 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.BoundedPerElement, DoFn.BundleFinalizer, DoFn.Element, DoFn.FieldAccess, DoFn.FinishBundle, DoFn.FinishBundleContext, DoFn.GetInitialRestriction, DoFn.GetRestrictionCoder, DoFn.MultiOutputReceiver, DoFn.NewTracker, DoFn.OnTimer, DoFn.OnTimerContext, DoFn.OnWindowExpiration, DoFn.OutputReceiver<T extends Object>, DoFn.ProcessContext, DoFn.ProcessContinuation, DoFn.ProcessElement, DoFn.RequiresStableInput, DoFn.Setup, DoFn.SplitRestriction, DoFn.StartBundle, DoFn.StartBundleContext, DoFn.StateId, DoFn.Teardown, DoFn.TimerId, DoFn.Timestamp, DoFn.UnboundedPerElement, DoFn.WindowedContextconfig, connection, DOFN_LOG| Constructor | Description |
|---|---|
CloudBigtableSingleTableBufferedWriteFn(CloudBigtableTableConfiguration config) |
| Modifier and Type | Method | 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)
@StartBundle public void setupBufferedMutator(DoFn.StartBundleContext context) throws IOException
IOException@ProcessElement public void processElement(DoFn.ProcessContext context) throws Exception
BufferedMutator.mutate(Mutation).Exception@FinishBundle public void finishBundle(DoFn.FinishBundleContext context) throws Exception
BufferedMutator and Connection.Exception