@InterfaceAudience.Private @InterfaceStability.Evolving public interface EventReader extends Closeable
AvroCLIClient
to
ingest into Flume. The stream may be finite or infinite.Modifier and Type | Method and Description |
---|---|
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. |
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 AutoCloseable
close
in interface Closeable
IOException
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.