|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Private @InterfaceStability.Evolving public interface EventReader
A line reader produces a stream of lines for the AvroCLIClient
to
ingest into Flume. The stream may be finite or infinite.
Method Summary | |
---|---|
void |
close()
Clean-up any state associated with this reader. |
Event |
readEvent()
Get the next line associated with the input stream. |
List<Event> |
readEvents(int n)
Get up to n lines associated with the input stream. |
Method Detail |
---|
Event readEvent() throws IOException
null
, the input underlying input source is considered finished.
Note that this is allowed to block for indefinite amounts of time waiting
to generate a new line.
IOException
List<Event> readEvents(int n) throws IOException
n
lines associated with the input stream. If this returns
less than n lines, the input underlying input source is considered
finished. Note that this is allowed to block for indefinite amounts of
time waiting to generate a new line.
IOException
void close() throws IOException
close
in interface Closeable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |