public abstract class GearpumpSource<T> extends Object implements org.apache.gearpump.streaming.source.DataSource
BoundedSourceWrapper and UnboundedSourceWrapper.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract Source.Reader<T> |
createReader(PipelineOptions options) |
Instant |
getWatermark() |
void |
open(org.apache.gearpump.streaming.task.TaskContext context,
Instant startTime) |
org.apache.gearpump.Message |
read() |
protected abstract Source.Reader<T> createReader(PipelineOptions options) throws IOException
IOExceptionpublic void open(org.apache.gearpump.streaming.task.TaskContext context,
Instant startTime)
open in interface org.apache.gearpump.streaming.source.DataSourcepublic org.apache.gearpump.Message read()
read in interface org.apache.gearpump.streaming.source.DataSourcepublic void close()
close in interface org.apache.gearpump.streaming.source.DataSourcepublic Instant getWatermark()
getWatermark in interface org.apache.gearpump.streaming.source.DataSourceCopyright © 2016–2017 The Apache Software Foundation. All rights reserved.