Package org.apache.nifi.cdc.event.io
Class EventWriterConfiguration
java.lang.Object
org.apache.nifi.cdc.event.io.EventWriterConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.nifi.flowfile.FlowFileprivate final FlowFileEventWriteStrategyprivate OutputStreamprivate com.fasterxml.jackson.core.JsonGeneratorprivate final intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionEventWriterConfiguration(FlowFileEventWriteStrategy flowFileEventWriteStrategy, int numberOfEventsPerFlowFile) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp()org.apache.nifi.flowfile.FlowFilecom.fasterxml.jackson.core.JsonGeneratorintintvoidvoidstartNewFlowFile(org.apache.nifi.flowfile.FlowFile flowFile, OutputStream flowFileOutputStream, com.fasterxml.jackson.core.JsonGenerator jsonGenerator)
-
Field Details
-
flowFileEventWriteStrategy
-
numberOfEventsPerFlowFile
private final int numberOfEventsPerFlowFile -
numberOfEventsWritten
private int numberOfEventsWritten -
currentFlowFile
private org.apache.nifi.flowfile.FlowFile currentFlowFile -
flowFileOutputStream
-
jsonGenerator
private com.fasterxml.jackson.core.JsonGenerator jsonGenerator
-
-
Constructor Details
-
EventWriterConfiguration
public EventWriterConfiguration(FlowFileEventWriteStrategy flowFileEventWriteStrategy, int numberOfEventsPerFlowFile)
-
-
Method Details
-
getFlowFileEventWriteStrategy
-
getNumberOfEventsWritten
public int getNumberOfEventsWritten() -
incrementNumberOfEventsWritten
public void incrementNumberOfEventsWritten() -
startNewFlowFile
public void startNewFlowFile(org.apache.nifi.flowfile.FlowFile flowFile, OutputStream flowFileOutputStream, com.fasterxml.jackson.core.JsonGenerator jsonGenerator) -
cleanUp
- Throws:
IOException
-
getNumberOfEventsPerFlowFile
public int getNumberOfEventsPerFlowFile() -
getCurrentFlowFile
public org.apache.nifi.flowfile.FlowFile getCurrentFlowFile() -
getFlowFileOutputStream
-
getJsonGenerator
public com.fasterxml.jackson.core.JsonGenerator getJsonGenerator()
-