public abstract class KafkaAbstractSource<V> extends PushSource<V>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
KafkaAbstractSource.KafkaRecord<V> |
protected static class |
KafkaAbstractSource.KeyValueKafkaRecord<V> |
| Constructor and Description |
|---|
KafkaAbstractSource() |
| Modifier and Type | Method and Description |
|---|---|
protected Properties |
beforeCreateConsumer(Properties props) |
abstract KafkaAbstractSource.KafkaRecord |
buildRecord(org.apache.kafka.clients.consumer.ConsumerRecord<Object,Object> consumerRecord) |
void |
close() |
void |
open(Map<String,Object> config,
SourceContext sourceContext) |
void |
start() |
consume, getQueueLength, readpublic void open(Map<String,Object> config, SourceContext sourceContext) throws Exception
protected Properties beforeCreateConsumer(Properties props)
public void close()
throws InterruptedException
InterruptedExceptionpublic void start()
public abstract KafkaAbstractSource.KafkaRecord buildRecord(org.apache.kafka.clients.consumer.ConsumerRecord<Object,Object> consumerRecord)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.