public class KinesisInput extends Object implements Serializable
Constructor and Description |
---|
KinesisInput() |
Modifier and Type | Method and Description |
---|---|
static KinesisInput |
fromInputSpecifier(String spec,
String project)
Parse Kinesis input specification into configuration
|
org.apache.beam.sdk.values.PCollection<String> |
toCollection(org.apache.beam.sdk.values.PBegin begin)
Apply
KinesisIO using configuration set in object |
public org.apache.beam.sdk.values.PCollection<String> toCollection(org.apache.beam.sdk.values.PBegin begin)
KinesisIO
using configuration set in object
When executed, will apply the KinesisIO transform in addition to a ParDo which splits individual elements by new line, returning raw strings read from the stream.
begin
- Pipeline beginpublic static KinesisInput fromInputSpecifier(String spec, String project)
Specification format: streamname:access id:access secret:region
The specification processor supports RuntimeSecrets, and may therefore also be a cloudkms:// URL or a GCS URL.
spec
- Input specificationproject
- GCP project if specification is encrypted with RuntimeSecrets, null otherwiseKinesisInput
Copyright © 2022. All rights reserved.