Skip to content

Commit

Permalink
Fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
damccorm committed Dec 18, 2024
1 parent fb95fee commit a0cf363
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.apache.beam.sdk.transforms.PTransform;
import org.apache.beam.sdk.values.PBegin;
import org.apache.beam.sdk.values.PCollection;
import org.apache.beam.sdk.values.PDone;
import org.apache.beam.vendor.guava.v32_1_2_jre.com.google.common.collect.ImmutableMap;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.joda.time.Duration;
Expand Down Expand Up @@ -86,7 +85,7 @@ public void setServiceEndpoint(@Nullable String serviceEndpoint) {
}

public static class WriteBuilder
implements ExternalTransformBuilder<WriteBuilder.Configuration, PCollection<byte[]>, PDone> {
implements ExternalTransformBuilder<WriteBuilder.Configuration, PCollection<byte[]>, KinesisIO.Write.Result> {

public static class Configuration extends CrossLanguageConfiguration {
private String partitionKey;
Expand All @@ -97,7 +96,7 @@ public void setPartitionKey(String partitionKey) {
}

@Override
public PTransform<PCollection<byte[]>, PDone> buildExternal(Configuration configuration) {
public PTransform<PCollection<byte[]>, KinesisIO.Write.Result> buildExternal(Configuration configuration) {
AwsBasicCredentials creds = AwsBasicCredentials.create(configuration.awsAccessKey, configuration.awsSecretKey);
StaticCredentialsProvider provider = StaticCredentialsProvider.create(creds);
KinesisIO.Write<byte[]> writeTransform =
Expand Down

0 comments on commit a0cf363

Please sign in to comment.