@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
- IOException
public EventReader(DataInputStream in) throws IOException
in
- IOException
public HistoryEvent getNextEvent() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.