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[]> . |
rowType
Constructor and Description |
---|
BeamKafkaCSVTable(RowType beamRowType,
java.lang.String bootstrapServers,
java.util.List<java.lang.String> topics) |
BeamKafkaCSVTable(RowType beamRowType,
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
getRowType
public BeamKafkaCSVTable(RowType beamRowType, java.lang.String bootstrapServers, java.util.List<java.lang.String> topics)
public BeamKafkaCSVTable(RowType beamRowType, 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