Class MockRecordWriter

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.serialization.record.MockRecordWriter
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService, RecordSetWriterFactory

public class MockRecordWriter extends org.apache.nifi.controller.AbstractControllerService implements RecordSetWriterFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
     
    private final int
     
    private final String
     
    private final boolean
     
    private final org.apache.nifi.serialization.record.RecordSchema
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
    MockRecordWriter(String header, boolean quoteValues)
     
    MockRecordWriter(String header, boolean quoteValues, boolean bufferOutput)
     
    MockRecordWriter(String header, boolean quoteValues, int failAfterN)
     
    MockRecordWriter(String header, boolean quoteValues, int failAfterN, boolean bufferOutput, org.apache.nifi.serialization.record.RecordSchema writeSchema)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createWriter(org.apache.nifi.logging.ComponentLog logger, org.apache.nifi.serialization.record.RecordSchema schema, OutputStream rawOut, Map<String,String> variables)
     
    org.apache.nifi.serialization.record.RecordSchema
    getSchema(Map<String,String> variables, org.apache.nifi.serialization.record.RecordSchema readSchema)
     

    Methods inherited from class org.apache.nifi.controller.AbstractControllerService

    abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabled

    Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent

    customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.nifi.components.ConfigurableComponent

    getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.controller.ControllerService

    initialize, isStateful, migrateProperties

    Methods inherited from interface org.apache.nifi.serialization.RecordSetWriterFactory

    createWriter
  • Field Details

    • failAfterN

      private final int failAfterN
    • quoteValues

      private final boolean quoteValues
    • bufferOutput

      private final boolean bufferOutput
    • writeSchema

      private final org.apache.nifi.serialization.record.RecordSchema writeSchema
  • Constructor Details

    • MockRecordWriter

      public MockRecordWriter()
    • MockRecordWriter

      public MockRecordWriter(String header)
    • MockRecordWriter

      public MockRecordWriter(String header, boolean quoteValues)
    • MockRecordWriter

      public MockRecordWriter(String header, boolean quoteValues, int failAfterN)
    • MockRecordWriter

      public MockRecordWriter(String header, boolean quoteValues, boolean bufferOutput)
    • MockRecordWriter

      public MockRecordWriter(String header, boolean quoteValues, int failAfterN, boolean bufferOutput, org.apache.nifi.serialization.record.RecordSchema writeSchema)
  • Method Details