Class BaseMskConsumer<T>
- java.lang.Object
-
- com.amazonaws.athena.connectors.msk.consumer.BaseMskConsumer<T>
-
- All Implemented Interfaces:
MskConsumer
- Direct Known Subclasses:
MskAvroConsumer
,MskDefaultConsumer
,MskProtobufConsumer
public abstract class BaseMskConsumer<T> extends Object implements MskConsumer
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
MAX_EMPTY_RESULT_FOUND_COUNT
-
Constructor Summary
Constructors Constructor Description BaseMskConsumer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
consume(BlockSpiller spiller, ReadRecordsRequest recordsRequest, QueryStatusChecker queryStatusChecker, SplitParameters splitParameters, org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
Consume topic data as batch.protected abstract void
processRecord(BlockSpiller spiller, SplitParameters splitParameters, org.apache.kafka.clients.consumer.ConsumerRecord<String,T> record)
-
-
-
Field Detail
-
MAX_EMPTY_RESULT_FOUND_COUNT
protected static final int MAX_EMPTY_RESULT_FOUND_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
consume
public void consume(BlockSpiller spiller, ReadRecordsRequest recordsRequest, QueryStatusChecker queryStatusChecker, SplitParameters splitParameters, org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
Description copied from interface:MskConsumer
Consume topic data as batch.- Specified by:
consume
in interfaceMskConsumer
- Parameters:
spiller
- - instance ofBlockSpiller
recordsRequest
- - instance ofReadRecordsRequest
queryStatusChecker
- - instance ofQueryStatusChecker
splitParameters
- - instance ofSplitParameters
consumer
- - instance ofKafkaConsumer
-
processRecord
protected abstract void processRecord(BlockSpiller spiller, SplitParameters splitParameters, org.apache.kafka.clients.consumer.ConsumerRecord<String,T> record)
-
-