public class CsvSource extends BasicSource
| Constructor and Description |
|---|
CsvSource(ConfigLoadContext sc,
org.json.JSONObject config) |
CsvSource(org.json.JSONObject config) |
CsvSource(String defPipeline,
String resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected MessageAndRouting |
internalGetNextMessage(StreamProcessingContext spc)
Get the next pending message, if any.
|
boolean |
isEof()
Is the source at EOF? Not all sources are bounded, so they may
always return false.
|
CsvSource |
setResource(InputStream data)
Provided to connect an existing input stream to this CSV parser source.
|
getBackoffTimes, getNextMessage, makeDefRoutingMessage, markComplete, noteEndOfStream, requeuepublic CsvSource(org.json.JSONObject config)
throws Builder.BuildFailure
Builder.BuildFailurepublic CsvSource(String defPipeline, String resource) throws Builder.BuildFailure
Builder.BuildFailurepublic CsvSource(ConfigLoadContext sc, org.json.JSONObject config) throws Builder.BuildFailure
Builder.BuildFailurepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class BasicSourceIOExceptionpublic CsvSource setResource(InputStream data)
data - public boolean isEof()
SourceisEof in interface SourceisEof in class BasicSourceprotected MessageAndRouting internalGetNextMessage(StreamProcessingContext spc) throws IOException
BasicSourceinternalGetNextMessage in class BasicSourceIOExceptionCopyright © 2022 continual.io. All rights reserved.