@InterfaceAudience.Private @InterfaceStability.Unstable public class EventReader extends Object implements Closeable
| Constructor and Description |
|---|
EventReader(DataInputStream in)
Create a new Event Reader
|
EventReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path name)
Create a new Event Reader
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the Event reader
|
HistoryEvent |
getNextEvent()
Get the next event from the stream
|
public EventReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path name)
throws IOException
fs - name - IOExceptionpublic EventReader(DataInputStream in) throws IOException
in - IOExceptionpublic HistoryEvent getNextEvent() throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.