Package org.apache.beam.sdk.io.pulsar
Class WriteToPulsarDoFn
java.lang.Object
org.apache.beam.sdk.transforms.DoFn<byte[],Void>
org.apache.beam.sdk.io.pulsar.WriteToPulsarDoFn
- All Implemented Interfaces:
Serializable
,HasDisplayData
Transform for writing to Apache Pulsar. Support is currently incomplete, and there may be bugs;
see https://github.com/apache/beam/issues/31078 for more info, and comment in that issue if you
run into issues with this IO.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.beam.sdk.transforms.DoFn
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processElement
(byte[] messageToSend) void
setup()
void
teardown()
Methods inherited from class org.apache.beam.sdk.transforms.DoFn
getAllowedTimestampSkew, getInputTypeDescriptor, getOutputTypeDescriptor, populateDisplayData, prepareForProcessing
-
Method Details
-
setup
- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
processElement
- Throws:
Exception
-
teardown
- Throws:
org.apache.pulsar.client.api.PulsarClientException
-