public class StateFetchingIterators
extends java.lang.Object
Iterator of ByteStrings.| Modifier and Type | Method and Description |
|---|---|
static java.util.Iterator<org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString> |
forFirstChunk(BeamFnStateClient beamFnStateClient,
org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest stateRequestForFirstChunk)
This adapter handles using the continuation token to provide iteration over all the chunks
returned by the Beam Fn State API using the supplied state client and state request for the
first chunk of the state stream.
|
public static java.util.Iterator<org.apache.beam.vendor.grpc.v1p13p1.com.google.protobuf.ByteString> forFirstChunk(BeamFnStateClient beamFnStateClient, org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest stateRequestForFirstChunk)
beamFnStateClient - A client for handling state requests.stateRequestForFirstChunk - A fully populated state request for the first (and possibly
only) chunk of a state stream. This state request will be populated with a continuation
token to request further chunks of the stream if required.