public class KafkaLogWriterPlugin extends AbstractKafkaLogProcessor
| Modifier and Type | Field and Description |
|---|---|
static int |
CHECKPOINT_ROW_KEY_PREFIX |
| Constructor and Description |
|---|
KafkaLogWriterPlugin(CConfiguration cConfig,
FileMetaDataManager fileMetaDataManager,
LocationFactory locationFactory,
CheckpointManagerFactory checkpointManagerFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
doProcess(KafkaLogEvent event)
doProcess method will be called if the event is not already processed.
|
Checkpoint |
getCheckpoint(int partition)
Get the checkpoint offset for a given partition.
|
void |
init(Set<Integer> partitions)
Called when the leader partitions change.
|
void |
stop()
Called to stop processing for the current set of kafka partitions.
|
alreadyProcessed, init, processpublic static final int CHECKPOINT_ROW_KEY_PREFIX
@Inject public KafkaLogWriterPlugin(CConfiguration cConfig, FileMetaDataManager fileMetaDataManager, LocationFactory locationFactory, CheckpointManagerFactory checkpointManagerFactory) throws Exception
Exceptionpublic void init(Set<Integer> partitions)
KafkaLogProcessorpartitions - new leader partitions.public void doProcess(KafkaLogEvent event)
AbstractKafkaLogProcessordoProcess in class AbstractKafkaLogProcessorevent - KafkaLogEventpublic void stop()
KafkaLogProcessorpublic Checkpoint getCheckpoint(int partition)
KafkaLogProcessorpartition - partition number in kafkaCopyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.