BeamFnDataOutboundAggregator
directly.@Deprecated public class BeamFnDataOutboundObserver<T> extends java.lang.Object implements CloseableFnDataReceiver<T>
FnDataReceiver
for 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 and Description |
---|
BeamFnDataOutboundObserver(LogicalEndpoint outputLocation,
Coder<T> coder,
org.apache.beam.vendor.grpc.v1p43p2.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> outboundObserver,
PipelineOptions options)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(T t)
Deprecated.
|
void |
close()
Deprecated.
.
|
void |
flush()
Deprecated.
Eagerly flushes any data that is buffered in this channel.
|
public BeamFnDataOutboundObserver(LogicalEndpoint outputLocation, Coder<T> coder, org.apache.beam.vendor.grpc.v1p43p2.io.grpc.stub.StreamObserver<org.apache.beam.model.fnexecution.v1.BeamFnApi.Elements> outboundObserver, PipelineOptions options)
public void close() throws java.lang.Exception
CloseableFnDataReceiver
Does nothing if this CloseableFnDataReceiver
is already closed.
close
in interface java.lang.AutoCloseable
close
in interface CloseableFnDataReceiver<T>
java.lang.Exception
public void flush() throws java.io.IOException
CloseableFnDataReceiver
flush
in interface CloseableFnDataReceiver<T>
java.io.IOException
public void accept(T t) throws java.lang.Exception
accept
in interface FnDataReceiver<T>
java.lang.Exception