Class 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 use BeamFnDataOutboundAggregator directly.
    An outbound 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 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
      void accept​(T t)
      Deprecated.
       
      void close()
      Deprecated.
      .
      void flush()
      Deprecated.
      Eagerly flushes any data that is buffered in this channel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

      • flush

        public void flush()
                   throws java.io.IOException
        Deprecated.
        Description copied from interface: CloseableFnDataReceiver
        Eagerly flushes any data that is buffered in this channel.
        Specified by:
        flush in interface CloseableFnDataReceiver<T>
        Throws:
        java.io.IOException
      • accept

        public void accept​(T t)
                    throws java.lang.Exception
        Deprecated.
        Specified by:
        accept in interface FnDataReceiver<T>
        Throws:
        java.lang.Exception