|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.flume.client.avro.SimpleTextLineEventReader
@InterfaceAudience.Private @InterfaceStability.Evolving public class SimpleTextLineEventReader
A EventReader
implementation which delegates to a
BufferedReader
.
Constructor Summary | |
---|---|
SimpleTextLineEventReader(Reader in)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleTextLineEventReader(Reader in)
Method Detail |
---|
public Event readEvent() throws IOException
EventReader
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.
readEvent
in interface EventReader
IOException
public List<Event> readEvents(int n) throws IOException
EventReader
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.
readEvents
in interface EventReader
IOException
public void close() throws IOException
EventReader
close
in interface Closeable
close
in interface EventReader
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |