public class BeamKafkaCSVTable extends BeamKafkaTable
Modifier and Type | Class and Description |
---|---|
static class |
BeamKafkaCSVTable.CsvRecorderDecoder
A PTransform to convert
KV<byte[], byte[]> to BeamRecord . |
static class |
BeamKafkaCSVTable.CsvRecorderEncoder
A PTransform to convert
BeamRecord to KV<byte[], byte[]> . |
beamRecordSqlType
Constructor and Description |
---|
BeamKafkaCSVTable(BeamRecordSqlType beamSqlRowType,
java.lang.String bootstrapServers,
java.util.List<java.lang.String> topics) |
BeamKafkaCSVTable(BeamRecordSqlType beamSqlRowType,
java.lang.String bootstrapServers,
java.util.List<java.lang.String> topics,
CSVFormat format) |
Modifier and Type | Method and Description |
---|---|
PTransform<PCollection<KV<byte[],byte[]>>,PCollection<BeamRecord>> |
getPTransformForInput() |
PTransform<PCollection<BeamRecord>,PCollection<KV<byte[],byte[]>>> |
getPTransformForOutput() |
buildIOReader, buildIOWriter, getBootstrapServers, getSourceType, getTopics, updateConsumerProperties
getRowType
public BeamKafkaCSVTable(BeamRecordSqlType beamSqlRowType, java.lang.String bootstrapServers, java.util.List<java.lang.String> topics)
public BeamKafkaCSVTable(BeamRecordSqlType beamSqlRowType, java.lang.String bootstrapServers, java.util.List<java.lang.String> topics, CSVFormat format)
public PTransform<PCollection<KV<byte[],byte[]>>,PCollection<BeamRecord>> getPTransformForInput()
getPTransformForInput
in class BeamKafkaTable
public PTransform<PCollection<BeamRecord>,PCollection<KV<byte[],byte[]>>> getPTransformForOutput()
getPTransformForOutput
in class BeamKafkaTable