public class FileEventConsumer extends Object implements io.cdap.delta.api.EventConsumer
| Modifier and Type | Method and Description |
|---|---|
void |
applyDDL(io.cdap.delta.api.Sequenced<io.cdap.delta.api.DDLEvent> event) |
void |
applyDML(io.cdap.delta.api.Sequenced<io.cdap.delta.api.DMLEvent> event) |
static List<? extends io.cdap.delta.api.ChangeEvent> |
readEvents(File filePath,
int instanceId)
Read events that were consumed by the target.
|
void |
start() |
void |
stop() |
public void start()
start in interface io.cdap.delta.api.EventConsumerpublic void stop()
stop in interface io.cdap.delta.api.EventConsumerpublic void applyDDL(io.cdap.delta.api.Sequenced<io.cdap.delta.api.DDLEvent> event)
throws IOException
applyDDL in interface io.cdap.delta.api.EventConsumerIOExceptionpublic void applyDML(io.cdap.delta.api.Sequenced<io.cdap.delta.api.DMLEvent> event)
throws IOException
applyDML in interface io.cdap.delta.api.EventConsumerIOExceptionpublic static List<? extends io.cdap.delta.api.ChangeEvent> readEvents(File filePath, int instanceId) throws IOException
filePath - path to read events frominstanceId - instance id that wrote the eventsIOException - if there was an issue reading the fileCopyright © 2020 CDAP Licensed under the Apache License, Version 2.0.