Package org.apache.beam.sdk.coders
Class CollectionCoder<T>
java.lang.Object
org.apache.beam.sdk.coders.Coder<Collection<T>>
org.apache.beam.sdk.coders.StructuredCoder<Collection<T>>
org.apache.beam.sdk.coders.IterableLikeCoder<T,Collection<T>>
org.apache.beam.sdk.coders.CollectionCoder<T>
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.beam.sdk.coders.Coder
Coder.Context, Coder.NonDeterministicException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Collection<T> decodeToIterable(List<T> decodedElements) Builds an instance ofIterableT, this coder's associatedIterable-like subtype, from a list of decoded elements.Returns theTypeDescriptorfor the type encoded.static <T> CollectionCoder<T> Methods inherited from class org.apache.beam.sdk.coders.IterableLikeCoder
decode, decodeToIterable, encode, getCoderArguments, getElemCoder, isRegisterByteSizeObserverCheap, registerByteSizeObserver, verifyDeterministicMethods inherited from class org.apache.beam.sdk.coders.StructuredCoder
equals, getComponents, hashCode, toStringMethods inherited from class org.apache.beam.sdk.coders.Coder
consistentWithEquals, decode, encode, getEncodedElementByteSize, getEncodedElementByteSizeUsingCoder, structuralValue, verifyDeterministic, verifyDeterministic
-
Constructor Details
-
CollectionCoder
-
-
Method Details
-
of
-
decodeToIterable
Builds an instance ofIterableT, this coder's associatedIterable-like subtype, from a list of decoded elements.Override
IterableLikeCoder.decodeToIterable(List, long, InputStream)if you need access to the terminator value and theInputStream.- Specified by:
decodeToIterablein classIterableLikeCoder<T,Collection<T>> - Returns:
- the decoded elements directly, since
Listis a subtype ofCollection.
-
getEncodedTypeDescriptor
Description copied from class:CoderReturns theTypeDescriptorfor the type encoded.- Overrides:
getEncodedTypeDescriptorin classCoder<Collection<T>>
-