public class CSVEmitter extends Module implements DataEmitter
All the keys and values in the map are of type string.
The module accepts request parameters of following types:
String : interpreted as a URL, if that fails, a
file path from which the csv file can be read. If the string starts
with 'r:', it's stripped from the string and rows are emitted in
the reverse order of their appearance.File: path to the csv file.URL: the url of the csv file.Module Features
| Capabilities | Data Emitter |
|---|---|
| DataFlow Request Parameters | String, File or URL. Usage explained above. |
| Stops data flows | Yes, if there's no more data to emit or if there was an error reading data from the file/URL. |
| Start Operation | Initializes the thread pool for emitting data. |
| Stop Operation | Shuts down the thread pool. |
| Management Interface | none |
| Factory | CSVEmitterFactory |
| Modifier | Constructor and Description |
|---|---|
protected |
CSVEmitter()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(DataFlowID inFlowID,
RequestID inRequestID) |
protected void |
preStart() |
protected void |
preStop() |
void |
requestData(DataRequest inRequest,
DataEmitterSupport inSupport) |
getCreated, getLastStartFailure, getLastStopFailure, getStarted, getState, getStopped, getURN, isAutoCreated, isAutoStartpublic void requestData(DataRequest inRequest, DataEmitterSupport inSupport) throws UnsupportedRequestParameterType, IllegalRequestParameterValue
requestData in interface DataEmitterUnsupportedRequestParameterTypeIllegalRequestParameterValuepublic void cancel(DataFlowID inFlowID, RequestID inRequestID)
cancel in interface DataEmitterCopyright © 2020. All rights reserved.