@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  nlines 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.IOExceptionList<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.IOExceptionvoid close()
    throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2009-2017 Apache Software Foundation. All Rights Reserved.