Package google.registry.beam.common
Class RegistryJpaIO.Read<R,T>
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<T>>
google.registry.beam.common.RegistryJpaIO.Read<R,T>
- All Implemented Interfaces:
Serializable
,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
RegistryJpaIO
public abstract static class RegistryJpaIO.Read<R,T>
extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<T>>
A
transform
that transactionally executes a JPA CriteriaQuery
and
adds the results to the BEAM pipeline. Users have the option to transform the results before
sending them to the next stages.- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.beam.sdk.values.PCollection
<T> expand
(org.apache.beam.sdk.values.PBegin input) withResultMapper
(org.apache.beam.sdk.transforms.SerializableFunction<R, T> mapper) Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Field Details
-
DEFAULT_NAME
- See Also:
-
-
Constructor Details
-
Read
public Read()
-
-
Method Details
-
expand
- Specified by:
expand
in classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,
org.apache.beam.sdk.values.PCollection<T>>
-
withName
-
withResultMapper
public RegistryJpaIO.Read<R,T> withResultMapper(org.apache.beam.sdk.transforms.SerializableFunction<R, T> mapper) -
withCoder
-