public static class StateBackedIterable.Coder<T>
extends org.apache.beam.sdk.coders.IterableLikeCoder<T,java.lang.Iterable<T>>
Iterable that might be backed by state. If the terminator at the end of the
value stream is -1 then we return a StateBackedIterable otherwise we return an
Iterable.| Constructor and Description |
|---|
Coder(java.util.function.Supplier<Cache<?,?>> cache,
BeamFnStateClient beamFnStateClient,
java.util.function.Supplier<java.lang.String> instructionId,
org.apache.beam.sdk.coders.Coder<T> elemCoder) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Iterable<T> |
decodeToIterable(java.util.List<T> decodedElements) |
protected java.lang.Iterable<T> |
decodeToIterable(java.util.List<T> decodedElements,
long terminatorValue,
java.io.InputStream in) |
void |
encode(java.lang.Iterable<T> iterable,
java.io.OutputStream outStream) |
decode, getCoderArguments, getElemCoder, isRegisterByteSizeObserverCheap, registerByteSizeObserver, verifyDeterministicequals, getComponents, hashCode, toStringpublic Coder(java.util.function.Supplier<Cache<?,?>> cache, BeamFnStateClient beamFnStateClient, java.util.function.Supplier<java.lang.String> instructionId, org.apache.beam.sdk.coders.Coder<T> elemCoder)