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 theTypeDescriptor
for the type encoded.static <T> CollectionCoder
<T> Methods inherited from class org.apache.beam.sdk.coders.IterableLikeCoder
decode, decodeToIterable, encode, getCoderArguments, getElemCoder, isRegisterByteSizeObserverCheap, registerByteSizeObserver, verifyDeterministic
Methods inherited from class org.apache.beam.sdk.coders.StructuredCoder
equals, getComponents, hashCode, toString
Methods 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:
decodeToIterable
in classIterableLikeCoder<T,
Collection<T>> - Returns:
- the decoded elements directly, since
List
is a subtype ofCollection
.
-
getEncodedTypeDescriptor
Description copied from class:Coder
Returns theTypeDescriptor
for the type encoded.- Overrides:
getEncodedTypeDescriptor
in classCoder<Collection<T>>
-