public class MicrobatchSource.Reader extends Source.Reader<T>
BoundedReadFromUnboundedSource's
UnboundedToBoundedSourceAdapter,
with some adjustments for Spark specifics.
This Reader reads until one of the following thresholds has been reached:
| Modifier and Type | Method and Description |
|---|---|
boolean |
advance() |
void |
close() |
CheckpointMarkT |
getCheckpointMark() |
T |
getCurrent() |
Source<T> |
getCurrentSource() |
org.joda.time.Instant |
getCurrentTimestamp() |
org.joda.time.Instant |
getWatermark() |
boolean |
start() |
public boolean start()
throws IOException
start in class Source.Reader<T>IOExceptionpublic boolean advance()
throws IOException
advance in class Source.Reader<T>IOExceptionpublic T getCurrent() throws NoSuchElementException
getCurrent in class Source.Reader<T>NoSuchElementExceptionpublic org.joda.time.Instant getCurrentTimestamp()
throws NoSuchElementException
getCurrentTimestamp in class Source.Reader<T>NoSuchElementExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in class Source.Reader<T>IOExceptionpublic Source<T> getCurrentSource()
getCurrentSource in class Source.Reader<T>public CheckpointMarkT getCheckpointMark()
public org.joda.time.Instant getWatermark()
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.