public class CollectionWriter extends DataWriter
Collection.
See FieldPath for supported field name expressions.DataEndpoint.StatelastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYBUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEid, log, name, TIMESTAMP_FORMAT| Constructor and Description |
|---|
CollectionWriter() |
| Modifier and Type | Method and Description |
|---|---|
CollectionWriter |
collect(String sourceField,
Collection targetCollection) |
<T extends Collection<?>> |
getCollection(String fieldPath) |
protected void |
writeImpl(Record record)
Overridden by subclasses to write the specified record to this
DataWriter. |
addExceptionProperties, available, getNestedEndpoint, getNestedWriter, getRootEndpoint, getRootWriter, getWriter, writeclose, decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, open, resetRecordCount, toStringaddElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime, setDescriptionpublic CollectionWriter collect(String sourceField, Collection targetCollection)
sourceField - the field to retrieve values from.targetCollection - the collection to add the source field's values to.public <T extends Collection<?>> T getCollection(String fieldPath)
protected void writeImpl(Record record) throws Throwable
DataWriterDataWriter.
Contract for subclasses (see also docs/authoring/DataWriter.md):
DataWriter.write(Record) is the template method
that wraps exceptions, increments the record count, and attaches the offending
record to thrown DataExceptions.DataEndpoint.incrementRecordCount() here; DataWriter.write(Record) already does.DataWriter.write(Record) wraps them via exception(throwable).setRecord(record).writeImpl in class DataWriterThrowableCopyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.