Class EventWriterConfiguration

java.lang.Object
org.apache.nifi.cdc.event.io.EventWriterConfiguration

public class EventWriterConfiguration extends Object
  • Field Details

    • flowFileEventWriteStrategy

      private final FlowFileEventWriteStrategy flowFileEventWriteStrategy
    • numberOfEventsPerFlowFile

      private final int numberOfEventsPerFlowFile
    • numberOfEventsWritten

      private int numberOfEventsWritten
    • currentFlowFile

      private org.apache.nifi.flowfile.FlowFile currentFlowFile
    • flowFileOutputStream

      private OutputStream flowFileOutputStream
    • jsonGenerator

      private com.fasterxml.jackson.core.JsonGenerator jsonGenerator
  • Constructor Details

    • EventWriterConfiguration

      public EventWriterConfiguration(FlowFileEventWriteStrategy flowFileEventWriteStrategy, int numberOfEventsPerFlowFile)
  • Method Details

    • getFlowFileEventWriteStrategy

      public FlowFileEventWriteStrategy 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

      public void cleanUp() throws IOException
      Throws:
      IOException
    • getNumberOfEventsPerFlowFile

      public int getNumberOfEventsPerFlowFile()
    • getCurrentFlowFile

      public org.apache.nifi.flowfile.FlowFile getCurrentFlowFile()
    • getFlowFileOutputStream

      public OutputStream getFlowFileOutputStream()
    • getJsonGenerator

      public com.fasterxml.jackson.core.JsonGenerator getJsonGenerator()