public class BeamKafkaCSVTable extends BeamKafkaTable
Modifier and Type | Class and Description |
---|---|
static class |
BeamKafkaCSVTable.CsvRecorderDecoder
A PTransform to convert
KV<byte[], byte[]> to Row . |
static class |
BeamKafkaCSVTable.CsvRecorderEncoder
A PTransform to convert
Row to KV<byte[], byte[]> . |
schema
Constructor and Description |
---|
BeamKafkaCSVTable(Schema beamSchema,
java.lang.String bootstrapServers,
java.util.List<java.lang.String> topics) |
BeamKafkaCSVTable(Schema beamSchema,
java.lang.String bootstrapServers,
java.util.List<java.lang.String> topics,
org.apache.commons.csv.CSVFormat format) |
Modifier and Type | Method and Description |
---|---|
PTransform<PCollection<KV<byte[],byte[]>>,PCollection<Row>> |
getPTransformForInput() |
PTransform<PCollection<Row>,PCollection<KV<byte[],byte[]>>> |
getPTransformForOutput() |
buildIOReader, buildIOWriter, getBootstrapServers, getSourceType, getTopics, updateConsumerProperties
getSchema
public BeamKafkaCSVTable(Schema beamSchema, java.lang.String bootstrapServers, java.util.List<java.lang.String> topics)
public BeamKafkaCSVTable(Schema beamSchema, java.lang.String bootstrapServers, java.util.List<java.lang.String> topics, org.apache.commons.csv.CSVFormat format)
public PTransform<PCollection<KV<byte[],byte[]>>,PCollection<Row>> getPTransformForInput()
getPTransformForInput
in class BeamKafkaTable
public PTransform<PCollection<Row>,PCollection<KV<byte[],byte[]>>> getPTransformForOutput()
getPTransformForOutput
in class BeamKafkaTable