|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.tools.rumen.JobTraceReader
public class JobTraceReader
Reading JSON-encoded job traces and produce LoggedJob
instances.
Constructor Summary | |
---|---|
JobTraceReader(InputStream input)
Constructor. |
|
JobTraceReader(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
Constructor. |
Method Summary | |
---|---|
void |
close()
|
T |
getNext()
Get the next object from the trace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobTraceReader(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
path
- Path to the JSON trace file, possibly compressed.conf
-
IOException
public JobTraceReader(InputStream input) throws IOException
input
- The input stream for the JSON trace.
IOException
Method Detail |
---|
public T getNext() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |