Class DynamoDBIO.Read<T>
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<T>>
-
- org.apache.beam.sdk.io.aws2.dynamodb.DynamoDBIO.Read<T>
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
- DynamoDBIO
public abstract static class DynamoDBIO.Read<T> extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<T>>Read data from DynamoDB usinggetScanRequestFn()and emit an element of typeDynamoDBIO.Readfor eachScanResponseusing the mapping functiongetScanResponseMapperFn().- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Read()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.beam.sdk.values.PCollection<T>expand(org.apache.beam.sdk.values.PBegin input)DynamoDBIO.Read<java.util.List<java.util.Map<java.lang.String,software.amazon.awssdk.services.dynamodb.model.AttributeValue>>>items()DynamoDBIO.Read<T>withClientConfiguration(ClientConfiguration config)Configuration of DynamoDB client.DynamoDBIO.Read<T>withCoder(org.apache.beam.sdk.coders.Coder<T> coder)DynamoDBIO.Read<T>withDynamoDbClientProvider(DynamoDbClientProvider clientProvider)Deprecated.UsewithClientConfiguration(ClientConfiguration)instead.DynamoDBIO.Read<T>withDynamoDbClientProvider(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, java.lang.String region)Deprecated.UsewithClientConfiguration(ClientConfiguration)instead.DynamoDBIO.Read<T>withDynamoDbClientProvider(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, java.lang.String region, java.net.URI endpoint)Deprecated.UsewithClientConfiguration(ClientConfiguration)instead.DynamoDBIO.Read<T>withScanRequestFn(org.apache.beam.sdk.transforms.SerializableFunction<java.lang.Void,software.amazon.awssdk.services.dynamodb.model.ScanRequest> fn)Can't pass ScanRequest object directly from client since this object is not full serializable.DynamoDBIO.Read<T>withScanResponseMapperFn(org.apache.beam.sdk.transforms.SerializableFunction<software.amazon.awssdk.services.dynamodb.model.ScanResponse,T> scanResultMapperFn)
-
-
-
Method Detail
-
withDynamoDbClientProvider
@Deprecated public DynamoDBIO.Read<T> withDynamoDbClientProvider(DynamoDbClientProvider clientProvider)
Deprecated.UsewithClientConfiguration(ClientConfiguration)instead. Alternatively you can configure a customClientBuilderFactoryinAwsOptions.
-
withDynamoDbClientProvider
@Deprecated public DynamoDBIO.Read<T> withDynamoDbClientProvider(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, java.lang.String region, java.net.URI endpoint)
Deprecated.UsewithClientConfiguration(ClientConfiguration)instead.
-
withDynamoDbClientProvider
@Deprecated public DynamoDBIO.Read<T> withDynamoDbClientProvider(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, java.lang.String region)
Deprecated.UsewithClientConfiguration(ClientConfiguration)instead.
-
withClientConfiguration
public DynamoDBIO.Read<T> withClientConfiguration(ClientConfiguration config)
Configuration of DynamoDB client.
-
withScanRequestFn
public DynamoDBIO.Read<T> withScanRequestFn(org.apache.beam.sdk.transforms.SerializableFunction<java.lang.Void,software.amazon.awssdk.services.dynamodb.model.ScanRequest> fn)
Can't pass ScanRequest object directly from client since this object is not full serializable.
-
withScanResponseMapperFn
public DynamoDBIO.Read<T> withScanResponseMapperFn(org.apache.beam.sdk.transforms.SerializableFunction<software.amazon.awssdk.services.dynamodb.model.ScanResponse,T> scanResultMapperFn)
-
items
public DynamoDBIO.Read<java.util.List<java.util.Map<java.lang.String,software.amazon.awssdk.services.dynamodb.model.AttributeValue>>> items()
-
withCoder
public DynamoDBIO.Read<T> withCoder(org.apache.beam.sdk.coders.Coder<T> coder)
-
-