In - the type of the (main) input elementsOut - the type of the (main) output elementspublic abstract class AbstractCloudBigtableTableDoFn<In,Out> extends DoFn<In,Out>
DoFns that require a Connection in
Dataflow.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| Modifier and Type | Field and Description |
|---|---|
protected CloudBigtableConfiguration |
config |
protected Connection |
connection |
protected org.slf4j.Logger |
DOFN_LOG |
| Constructor and Description |
|---|
AbstractCloudBigtableTableDoFn(CloudBigtableConfiguration config) |
| Modifier and Type | Method and 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()