public abstract class GearpumpSource<T>
extends java.lang.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) |
java.time.Instant |
getWatermark() |
void |
open(org.apache.gearpump.streaming.task.TaskContext context,
java.time.Instant startTime) |
org.apache.gearpump.Message |
read() |
protected abstract Source.Reader<T> createReader(PipelineOptions options) throws java.io.IOException
java.io.IOException
public void open(org.apache.gearpump.streaming.task.TaskContext context, java.time.Instant startTime)
open
in interface org.apache.gearpump.streaming.source.DataSource
public org.apache.gearpump.Message read()
read
in interface org.apache.gearpump.streaming.source.DataSource
public void close()
close
in interface org.apache.gearpump.streaming.source.DataSource
public java.time.Instant getWatermark()
getWatermark
in interface org.apache.gearpump.streaming.source.DataSource