Package org.apache.beam.sdk.fn.data
Class BeamFnDataOutboundObserver<T>
- java.lang.Object
-
- org.apache.beam.sdk.fn.data.BeamFnDataOutboundObserver<T>
-
- All Implemented Interfaces:
java.lang.AutoCloseable,CloseableFnDataReceiver<T>,FnDataReceiver<T>
@Deprecated public class BeamFnDataOutboundObserver<T> extends java.lang.Object implements CloseableFnDataReceiver<T>
Deprecated.Migrate to useBeamFnDataOutboundAggregatordirectly.An outboundFnDataReceiverfor the Beam Fn Data API.TODO: Handle outputting large elements (> 2GiBs). Note that this also applies to the input side as well.
TODO: Handle outputting elements that are zero bytes by outputting a single byte as a marker, detect on the input side that no bytes were read and force reading a single byte.
-
-
Constructor Summary
Constructors Constructor Description BeamFnDataOutboundObserver(LogicalEndpoint outputLocation, org.apache.beam.sdk.coders.Coder<T> coder, org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> outboundObserver, org.apache.beam.sdk.options.PipelineOptions options)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaccept(T t)Deprecated.voidclose()Deprecated..voidflush()Deprecated.Eagerly flushes any data that is buffered in this channel.
-
-
-
Constructor Detail
-
BeamFnDataOutboundObserver
public BeamFnDataOutboundObserver(LogicalEndpoint outputLocation, org.apache.beam.sdk.coders.Coder<T> coder, org.apache.beam.vendor.grpc.v1p48p1.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> outboundObserver, org.apache.beam.sdk.options.PipelineOptions options)
Deprecated.
-
-
Method Detail
-
close
public void close() throws java.lang.ExceptionDeprecated.Description copied from interface:CloseableFnDataReceiver.Does nothing if this
CloseableFnDataReceiveris already closed.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceCloseableFnDataReceiver<T>- Throws:
java.lang.Exception
-
flush
public void flush() throws java.io.IOExceptionDeprecated.Description copied from interface:CloseableFnDataReceiverEagerly flushes any data that is buffered in this channel.- Specified by:
flushin interfaceCloseableFnDataReceiver<T>- Throws:
java.io.IOException
-
accept
public void accept(T t) throws java.lang.Exception
Deprecated.- Specified by:
acceptin interfaceFnDataReceiver<T>- Throws:
java.lang.Exception
-
-