T - the type of the elements of the iterables being transcodedpublic class IterableCoder<T> extends IterableLikeCoder<T,java.lang.Iterable<T>>
Coder.Context, Coder.NonDeterministicException| Modifier | Constructor and Description |
|---|---|
protected |
IterableCoder(Coder<T> elemCoder) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Iterable<T> |
decodeToIterable(java.util.List<T> decodedElements)
Builds an instance of
IterableT, this coder's associated Iterable-like
subtype, from a list of decoded elements. |
TypeDescriptor<java.lang.Iterable<T>> |
getEncodedTypeDescriptor()
Returns the
TypeDescriptor for the type encoded. |
static <T> IterableCoder<T> |
of(Coder<T> elemCoder) |
decode, encode, getCoderArguments, getElemCoder, isRegisterByteSizeObserverCheap, registerByteSizeObserver, verifyDeterministicconsistentWithEquals, equals, getComponents, hashCode, structuralValue, toStringdecode, encode, getEncodedElementByteSize, verifyDeterministic, verifyDeterministicpublic static <T> IterableCoder<T> of(Coder<T> elemCoder)
protected final java.lang.Iterable<T> decodeToIterable(java.util.List<T> decodedElements)
IterableLikeCoderIterableT, this coder's associated Iterable-like
subtype, from a list of decoded elements.decodeToIterable in class IterableLikeCoder<T,java.lang.Iterable<T>>public TypeDescriptor<java.lang.Iterable<T>> getEncodedTypeDescriptor()
CoderTypeDescriptor for the type encoded.getEncodedTypeDescriptor in class StructuredCoder<java.lang.Iterable<T>>