T - the type of the elements of the iterables being transcodedpublic class IterableCoder<T> extends IterableLikeCoder<T,Iterable<T>>
Coder.Context, Coder.NonDeterministicException| Modifier | Constructor and Description |
|---|---|
protected |
IterableCoder(Coder<T> elemCoder) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.util.CloudObject |
asCloudObject()
Returns the
CloudObject that represents this Coder. |
protected Iterable<T> |
decodeToIterable(List<T> decodedElements)
Builds an instance of
IterableT, this coder's associated Iterable-like
subtype, from a list of decoded elements. |
static <T> List<Object> |
getInstanceComponents(Iterable<T> exampleValue)
Returns the first element in this iterable if it is non-empty,
otherwise returns
null. |
static <T> IterableCoder<T> |
of(Coder<T> elemCoder) |
static IterableCoder<?> |
of(List<Coder<?>> components) |
decode, encode, getCoderArguments, getElemCoder, getInstanceComponentsHelper, isRegisterByteSizeObserverCheap, registerByteSizeObserver, verifyDeterministicconsistentWithEquals, equals, getAllowedEncodings, getComponents, getEncodedElementByteSize, getEncodingId, hashCode, structuralValue, toString, verifyDeterministic, verifyDeterministicpublic static <T> IterableCoder<T> of(Coder<T> elemCoder)
protected final Iterable<T> decodeToIterable(List<T> decodedElements)
IterableLikeCoderIterableT, this coder's associated Iterable-like
subtype, from a list of decoded elements.decodeToIterable in class IterableLikeCoder<T,Iterable<T>>public static IterableCoder<?> of(List<Coder<?>> components)
public static <T> List<Object> getInstanceComponents(Iterable<T> exampleValue)
null.public org.apache.beam.sdk.util.CloudObject asCloudObject()
CoderCloudObject that represents this Coder.asCloudObject in interface Coder<Iterable<T>>asCloudObject in class StandardCoder<Iterable<T>>