Class MockRecordWriter
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.serialization.record.MockRecordWriter
- All Implemented Interfaces:
ConfigurableComponent,ControllerService,RecordSetWriterFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final intprivate final Stringprivate final booleanprivate final RecordSchema -
Constructor Summary
ConstructorsConstructorDescriptionMockRecordWriter(String header) 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, RecordSchema writeSchema) -
Method Summary
Modifier and TypeMethodDescriptioncreateWriter(ComponentLog logger, RecordSchema schema, OutputStream rawOut, Map<String, String> variables) getSchema(Map<String, String> variables, RecordSchema readSchema) Methods inherited from class org.apache.nifi.controller.AbstractControllerService
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migratePropertiesMethods inherited from interface org.apache.nifi.serialization.RecordSetWriterFactory
createWriter
-
Field Details
-
header
-
failAfterN
private final int failAfterN -
quoteValues
private final boolean quoteValues -
bufferOutput
private final boolean bufferOutput -
writeSchema
-
-
Constructor Details
-
MockRecordWriter
public MockRecordWriter() -
MockRecordWriter
-
MockRecordWriter
-
MockRecordWriter
-
MockRecordWriter
-
MockRecordWriter
public MockRecordWriter(String header, boolean quoteValues, int failAfterN, boolean bufferOutput, RecordSchema writeSchema)
-
-
Method Details
-
getSchema
public RecordSchema getSchema(Map<String, String> variables, RecordSchema readSchema) throws SchemaNotFoundException, IOException- Specified by:
getSchemain interfaceRecordSetWriterFactory- Throws:
SchemaNotFoundExceptionIOException
-
createWriter
public RecordSetWriter createWriter(ComponentLog logger, RecordSchema schema, OutputStream rawOut, Map<String, String> variables) - Specified by:
createWriterin interfaceRecordSetWriterFactory
-