public interface SingleFileHdfsReader
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the reader.
|
boolean |
hasNext()
Whether there are still records to be read
|
java.lang.String |
nextOffset()
Get the next offset, which is the offset for the next message
that will be returned by readNext
|
void |
open(java.lang.String path,
java.lang.String offset)
Open the file and seek to specific offset for reading.
|
org.apache.samza.system.IncomingMessageEnvelope |
readNext()
Construct and return the next message envelope
|
void |
seek(java.lang.String offset)
Seek to a specific offset
|
void open(java.lang.String path,
java.lang.String offset)
path - path of the file to be readoffset - offset the reader should start fromvoid seek(java.lang.String offset)
offset - offset the reader should seek toorg.apache.samza.system.IncomingMessageEnvelope readNext()
java.lang.String nextOffset()
boolean hasNext()
void close()