public abstract class AbstractBinlogEventWriter<T extends BinlogEventInfo> extends AbstractEventWriter<T>
jsonGeneratorAPPLICATION_JSON, CDC_EVENT_TYPE_ATTRIBUTE, SEQUENCE_ID_KEY| Constructor and Description |
|---|
AbstractBinlogEventWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
getCommonAttributes(long sequenceId,
BinlogEventInfo eventInfo) |
long |
writeEvent(ProcessSession session,
String transitUri,
T eventInfo,
long currentSequenceId,
Relationship relationship) |
protected void |
writeJson(T event) |
endJson, startJsonprotected void writeJson(T event) throws IOException
IOExceptionprotected Map<String,String> getCommonAttributes(long sequenceId, BinlogEventInfo eventInfo)
public long writeEvent(ProcessSession session, String transitUri, T eventInfo, long currentSequenceId, Relationship relationship)
Copyright © 2022 Apache NiFi Project. All rights reserved.