Package org.apache.beam.sdk.fn.stream
gRPC stream management.
-
Interface Summary Interface Description DataStreams.OutputChunkConsumer<T> A callback which is invoked whenever theDataStreams.outbound(org.apache.beam.sdk.fn.stream.DataStreams.OutputChunkConsumer<org.apache.beam.vendor.grpc.v1p48p1.com.google.protobuf.ByteString>)OutputStreambecomes full.OutboundObserverFactory.BasicFactory<ReqT,RespT> Creates an outbound observer for the given inbound observer.PrefetchableIterable<T> AnIterablethat returnsPrefetchableIterators.PrefetchableIterator<T> Iteratorthat supports prefetching the next set of records. -
Class Summary Class Description AdvancingPhaser APhaserwhich never terminates.BufferingStreamObserver<T extends @NonNull java.lang.Object> A thread safeStreamObserverwhich uses a bounded queue to pass elements to a processing thread responsible for interacting with the underlyingCallStreamObserver.DataStreams DataStreams.DataStreamDecodertreats multipleByteStrings as a single input stream decoding values with the supplied iterator.DataStreams.DataStreamDecoder<T> An adapter which converts anInputStreamto aPrefetchableIteratorofTvalues using the specifiedCoder.DataStreams.ElementDelimitedOutputStream An adapter which wraps anDataStreams.OutputChunkConsumeras anOutputStream.DirectStreamObserver<T> AStreamObserverwhich uses synchronization on the underlyingCallStreamObserverto provide thread safety.ForwardingClientResponseObserver<ReqT,RespT> AClientResponseObserverwhich delegates allStreamObservercalls.OutboundObserverFactory Creates factories which determine an underlyingStreamObserverimplementation to use in to interact with fn execution APIs.PrefetchableIterables This class contains static utility functions that operate on or return objects of typePrefetchableIterable.PrefetchableIterables.Default<T> A default implementation that caches an iterator to be returned whenPrefetchableIterables.Default.prefetch()is invoked.PrefetchableIterators SynchronizedStreamObserver<V> AStreamObserverwhich provides synchronous access access to an underlyingStreamObserver.