Class ArrayListRecordWriter
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.serialization.record.ArrayListRecordWriter
- All Implemented Interfaces:
ConfigurableComponent,ControllerService,RecordSetWriterFactory
public class ArrayListRecordWriter
extends AbstractControllerService
implements RecordSetWriterFactory
An implementation that is suitable for testing that does not serialize the data to an Output Stream but instead just buffers the data into an
ArrayList and then provides that List of written records to the user.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWriter(ComponentLog logger, RecordSchema schema, OutputStream out, 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
-
records
-
schema
-
declaredSchema
-
-
Constructor Details
-
ArrayListRecordWriter
-
-
Method Details
-
getDeclaredSchema
-
getSchema
- Specified by:
getSchemain interfaceRecordSetWriterFactory
-
createWriter
public RecordSetWriter createWriter(ComponentLog logger, RecordSchema schema, OutputStream out, Map<String, String> variables) - Specified by:
createWriterin interfaceRecordSetWriterFactory
-
getRecordsWritten
-