@InterfaceAudience.Private @InterfaceStability.Evolving public interface EventReader extends Closeable
AvroCLIClient
to
ingest into Flume. The stream may be finite or infinite.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-2016 Apache Software Foundation. All Rights Reserved.