public class SplitWriter extends DataWriter
| Modifier and Type | Class and Description |
|---|---|
static interface |
SplitWriter.IStrategy |
static class |
SplitWriter.Strategy |
DataEndpoint.State| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_QUEUE_SIZE |
protected static Record |
EOF |
static Logger |
log |
lastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYBUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEid, name, TIMESTAMP_FORMAT| Constructor and Description |
|---|
SplitWriter() |
SplitWriter(SplitWriter.IStrategy strategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Indicates that this endpoint has finished reading or writing.
|
DataReader |
createReader() |
int |
getQueueSize()
Retrieves the buffer size for downstream readers of this splitter (default is 100 records).
|
SplitWriter.IStrategy |
getStrategy() |
List<SplitReader> |
getTargets() |
void |
open()
Makes this endpoint ready for reading or writing.
|
void |
removeClosedTargets() |
SplitWriter |
setQueueSize(int queueSize)
Sets the buffer size for downstream readers of this splitter (default is 100 records).
|
protected void |
writeImpl(Record record)
Overridden by subclasses to write the specified record to this
DataWriter. |
addExceptionProperties, available, getNestedEndpoint, getNestedWriter, getRootEndpoint, getRootWriter, getWriter, writedecrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toStringaddElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime, setDescriptionpublic static final Logger log
public static final int DEFAULT_QUEUE_SIZE
protected static final Record EOF
public SplitWriter(SplitWriter.IStrategy strategy)
public SplitWriter()
public SplitWriter.IStrategy getStrategy()
public List<SplitReader> getTargets()
public int getQueueSize()
public SplitWriter setQueueSize(int queueSize)
public DataReader createReader()
protected void writeImpl(Record record) throws Throwable
DataWriterDataWriter.writeImpl in class DataWriterThrowablepublic void open()
throws DataException
DataEndpointopen in class DataEndpointDataExceptionpublic void close()
throws DataException
DataEndpointclose in class DataEndpointDataExceptionpublic void removeClosedTargets()
Copyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.