public class KafkaRecordReader extends Object implements ManagedReader<SchemaNegotiator>
| Constructor and Description |
|---|
KafkaRecordReader(KafkaPartitionScanSpec subScanSpec,
OptionManager options,
KafkaStoragePlugin plugin,
int maxRecords) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release resources.
|
boolean |
next()
KafkaConsumer.poll will fetch 500 messages per poll call.
|
boolean |
open(SchemaNegotiator negotiator)
Setup the record reader.
|
String |
toString() |
public KafkaRecordReader(KafkaPartitionScanSpec subScanSpec, OptionManager options, KafkaStoragePlugin plugin, int maxRecords)
public boolean open(SchemaNegotiator negotiator)
ManagedReaderopen in interface ManagedReader<SchemaNegotiator>negotiator - mechanism to negotiate select and table
schemas, then create the row set reader used to load data into
value vectorspublic boolean next()
next in interface ManagedReader<SchemaNegotiator>public void close()
ManagedReaderclose in interface ManagedReader<SchemaNegotiator>Copyright © 2021 The Apache Software Foundation. All rights reserved.