public class CsvSource extends BasicSource
| Constructor and Description |
|---|
CsvSource(org.json.JSONObject config) |
CsvSource(ServiceContainer sc,
org.json.JSONObject config) |
CsvSource(String defPipeline,
String resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected MessageAndRouting |
internalGetNextMessage(StreamProcessingContext spc,
long timeUnit,
TimeUnit units) |
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(ServiceContainer 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, long timeUnit, TimeUnit units) throws IOException
internalGetNextMessage in class BasicSourceIOExceptionCopyright © 2020 continual.io. All rights reserved.