| Modifier and Type | Method and Description |
|---|---|
static KafkaIO.Read<byte[],byte[]> |
KafkaIO.read()
Creates an uninitialized
KafkaIO.Read PTransform. |
KafkaIO.Read<K,V> |
KafkaIO.Read.updateConsumerProperties(Map<String,Object> configUpdates)
Update consumer configuration with new properties.
|
KafkaIO.Read<K,V> |
KafkaIO.Read.withBootstrapServers(String bootstrapServers)
Returns a new
KafkaIO.Read with Kafka consumer pointing to bootstrapServers. |
KafkaIO.Read<K,V> |
KafkaIO.Read.withConsumerFactoryFn(SerializableFunction<Map<String,Object>,org.apache.kafka.clients.consumer.Consumer<byte[],byte[]>> consumerFactoryFn)
A factory to create Kafka
Consumer from consumer configuration. |
<KeyT> KafkaIO.Read<KeyT,V> |
KafkaIO.Read.withKeyCoder(Coder<KeyT> keyCoder)
Returns a new
KafkaIO.Read with Coder for key bytes. |
KafkaIO.Read<K,V> |
KafkaIO.Read.withMaxNumRecords(long maxNumRecords)
Similar to
Read.Unbounded.withMaxNumRecords(long). |
KafkaIO.Read<K,V> |
KafkaIO.Read.withMaxReadTime(org.joda.time.Duration maxReadTime)
Similar to
Read.Unbounded.withMaxReadTime(Duration). |
KafkaIO.Read<K,V> |
KafkaIO.Read.withTopicPartitions(List<org.apache.kafka.common.TopicPartition> topicPartitions)
Returns a new
KafkaIO.Read that reads from the partitions. |
KafkaIO.Read<K,V> |
KafkaIO.Read.withTopics(List<String> topics)
Returns a new
KafkaIO.Read that reads from the topics. |
<ValueT> KafkaIO.Read<K,ValueT> |
KafkaIO.Read.withValueCoder(Coder<ValueT> valueCoder)
Returns a new
KafkaIO.Read with Coder for value bytes. |
Copyright © 2016 The Apache Software Foundation. All rights reserved.