Package org.apache.beam.sdk.values
Class PCollectionViews.InMemoryListFromMultimapViewFn<T>
java.lang.Object
org.apache.beam.sdk.transforms.ViewFn<Materializations.MultimapView<Void,T>,List<T>>
org.apache.beam.sdk.values.PCollectionViews.InMemoryListFromMultimapViewFn<T>
- All Implemented Interfaces:
Serializable
- Enclosing class:
PCollectionViews
public static class PCollectionViews.InMemoryListFromMultimapViewFn<T>
extends ViewFn<Materializations.MultimapView<Void,T>,List<T>>
Implementation which is able to adapt a multimap materialization to an in-memory
List<T>.
For internal use only.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryListFromMultimapViewFn(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier) -
Method Summary
Modifier and TypeMethodDescriptionapply(Materializations.MultimapView<Void, T> primitiveView) A function to adapt a primitive view type to a desired view type.booleanGets the materialization of thisViewFn.Return theTypeDescriptordescribing the output of this fn.inthashCode()
-
Constructor Details
-
InMemoryListFromMultimapViewFn
public InMemoryListFromMultimapViewFn(PCollectionViews.TypeDescriptorSupplier<T> typeDescriptorSupplier)
-
-
Method Details
-
getMaterialization
Description copied from class:ViewFnGets the materialization of thisViewFn.- Specified by:
getMaterializationin classViewFn<Materializations.MultimapView<Void,T>, List<T>>
-
apply
Description copied from class:ViewFnA function to adapt a primitive view type to a desired view type. -
getTypeDescriptor
Description copied from class:ViewFnReturn theTypeDescriptordescribing the output of this fn.- Specified by:
getTypeDescriptorin classViewFn<Materializations.MultimapView<Void,T>, List<T>>
-
equals
-
hashCode
public int hashCode()
-