public class PubsubLiteSink extends DoFn<com.google.cloud.pubsublite.proto.PubSubMessage,java.lang.Void>
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 and Description |
---|
PubsubLiteSink(PublisherOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
finishBundle() |
void |
processElement(com.google.cloud.pubsublite.proto.PubSubMessage message) |
void |
startBundle() |
getAllowedTimestampSkew, getInputTypeDescriptor, getOutputTypeDescriptor, populateDisplayData, prepareForProcessing
public PubsubLiteSink(PublisherOptions options)
@DoFn.StartBundle public void startBundle() throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiException
@DoFn.ProcessElement public void processElement(@DoFn.Element com.google.cloud.pubsublite.proto.PubSubMessage message) throws com.google.cloud.pubsublite.internal.CheckedApiException
com.google.cloud.pubsublite.internal.CheckedApiException
@DoFn.FinishBundle public void finishBundle() throws java.lang.Exception
java.lang.Exception