In - the type of the (main) input elementsOut - the type of the (main) output elementsSerializable, HasDisplayDataCloudBigtableIO.CloudBigtableMultiTableWriteFn, CloudBigtableIO.CloudBigtableSingleTableBufferedWriteFnpublic abstract class AbstractCloudBigtableTableDoFn<In,Out> extends DoFn<In,Out>
DoFns that require a Connection in
Dataflow.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.WindowedContext| Modifier and Type | Field | Description |
|---|---|---|
protected CloudBigtableConfiguration |
config |
|
protected Connection |
connection |
|
protected org.slf4j.Logger |
DOFN_LOG |
| Constructor | Description |
|---|---|
AbstractCloudBigtableTableDoFn(CloudBigtableConfiguration config) |
| Modifier and Type | Method | Description |
|---|---|---|
CloudBigtableConfiguration |
getConfig() |
|
protected Connection |
getConnection() |
|
protected void |
logExceptions(Object context,
RetriesExhaustedWithDetailsException exception) |
Logs a context and the exception's
RetriesExhaustedWithDetailsException.getExhaustiveDescription(). |
static void |
logRetriesExhaustedWithDetailsException(org.slf4j.Logger log,
String context,
RetriesExhaustedWithDetailsException exception) |
|
void |
populateDisplayData(DisplayData.Builder builder) |
|
protected static void |
rethrowException(RetriesExhaustedWithDetailsException exception) |
getAllowedTimestampSkew, getInputTypeDescriptor, getOutputTypeDescriptor, prepareForProcessingprotected final org.slf4j.Logger DOFN_LOG
protected final CloudBigtableConfiguration config
protected Connection connection
public AbstractCloudBigtableTableDoFn(CloudBigtableConfiguration config)
public static void logRetriesExhaustedWithDetailsException(org.slf4j.Logger log,
String context,
RetriesExhaustedWithDetailsException exception)
protected static void rethrowException(RetriesExhaustedWithDetailsException exception) throws Exception
Exceptionprotected Connection getConnection()
protected void logExceptions(Object context, RetriesExhaustedWithDetailsException exception)
RetriesExhaustedWithDetailsException.getExhaustiveDescription().public void populateDisplayData(DisplayData.Builder builder)
populateDisplayData in interface HasDisplayDatapopulateDisplayData in class DoFn<In,Out>public CloudBigtableConfiguration getConfig()