Class DynamoDBIO.Read<T>
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PBegin,PCollection<T>>
org.apache.beam.sdk.io.aws2.dynamodb.DynamoDBIO.Read<T>
- All Implemented Interfaces:
Serializable,HasDisplayData
- Enclosing class:
DynamoDBIO
Read data from DynamoDB using
getScanRequestFn() and emit an element of type DynamoDBIO.Read
for each ScanResponse using the mapping function getScanResponseMapperFn().- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride this method to specify how thisPTransformshould be expanded on the givenInputT.items()Configuration of DynamoDB client.Can't pass ScanRequest object directly from client since this object is not full serializable.withScanResponseMapperFn(SerializableFunction<ScanResponse, T> scanResultMapperFn) 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
-
Constructor Details
-
Read
public Read()
-
-
Method Details
-
withClientConfiguration
Configuration of DynamoDB client. -
withScanRequestFn
Can't pass ScanRequest object directly from client since this object is not full serializable. -
withScanResponseMapperFn
public DynamoDBIO.Read<T> withScanResponseMapperFn(SerializableFunction<ScanResponse, T> scanResultMapperFn) -
items
-
withCoder
-
expand
Description copied from class:PTransformOverride this method to specify how thisPTransformshould be expanded on the givenInputT.NOTE: This method should not be called directly. Instead apply the
PTransformshould be applied to theInputTusing theapplymethod.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expandin classPTransform<PBegin,PCollection<T>>
-