Class RecordWriter<T>
java.lang.Object
org.apache.nifi.jms.processors.ioconcept.writer.record.RecordWriter<T>
- All Implemented Interfaces:
FlowFileWriter<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AttributeSource<T> private final ComponentLogprivate final Marshaller<T> private final OutputStrategyprivate final RecordReaderFactoryprivate static final Stringprivate final RecordSetWriterFactory -
Constructor Summary
ConstructorsConstructorDescriptionRecordWriter(RecordReaderFactory readerFactory, RecordSetWriterFactory writerFactory, Marshaller<T> marshaller, AttributeSource<T> attributeSource, OutputStrategy outputStrategy, ComponentLog logger) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcloseWriter(RecordSetWriter writer) voidwrite(ProcessSession session, List<T> messages, FlowFileWriterCallback<T> flowFileWriterCallback)
-
Field Details
-
RECORD_COUNT_KEY
- See Also:
-
readerFactory
-
writerFactory
-
marshaller
-
attributeSource
-
outputStrategy
-
logger
-
-
Constructor Details
-
RecordWriter
public RecordWriter(RecordReaderFactory readerFactory, RecordSetWriterFactory writerFactory, Marshaller<T> marshaller, AttributeSource<T> attributeSource, OutputStrategy outputStrategy, ComponentLog logger)
-
-
Method Details
-
write
public void write(ProcessSession session, List<T> messages, FlowFileWriterCallback<T> flowFileWriterCallback) - Specified by:
writein interfaceFlowFileWriter<T>
-
closeWriter
-