FieldT
- thrift field type, i.e. ThriftGeneratedClass._Fields
T
- thrift generated classpublic class BeamKafkaThriftTable<FieldT extends org.apache.thrift.TFieldIdEnum,T extends org.apache.thrift.TBase<T,FieldT>> extends BeamKafkaTable
Uses the default thrift schema provider
, so it can't handle
custom
container typedefs.
numberOfRecordsForRate
schema
Constructor and Description |
---|
BeamKafkaThriftTable(Schema requiredSchema,
java.lang.String bootstrapServers,
java.util.List<java.lang.String> topics,
java.lang.Class<T> thriftClass,
org.apache.thrift.protocol.TProtocolFactory protocolFactory) |
Modifier and Type | Method and Description |
---|---|
protected PTransform<PCollection<KV<byte[],byte[]>>,PCollection<Row>> |
getPTransformForInput() |
protected PTransform<PCollection<Row>,PCollection<KV<byte[],byte[]>>> |
getPTransformForOutput() |
buildIOReader, buildIOWriter, getBootstrapServers, getTableStatistics, getTopics, isBounded, updateConsumerProperties
getSchema
buildIOReader, constructFilter, supportsProjects
protected PTransform<PCollection<KV<byte[],byte[]>>,PCollection<Row>> getPTransformForInput()
getPTransformForInput
in class BeamKafkaTable
protected PTransform<PCollection<Row>,PCollection<KV<byte[],byte[]>>> getPTransformForOutput()
getPTransformForOutput
in class BeamKafkaTable