|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
EventReadernull, 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 EventReaderIOException
public List<Event> readEvents(int n)
throws IOException
EventReadern 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 EventReaderIOException
public void close()
throws IOException
EventReader
close in interface Closeableclose in interface EventReaderIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||