java.io.Closeable, java.lang.AutoCloseablepublic class JobTraceReader
extends java.lang.Object
LoggedJob instances.| Constructor | Description |
|---|---|
JobTraceReader(java.io.InputStream input) |
Constructor.
|
JobTraceReader(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
T |
getNext() |
Get the next object from the trace.
|
public JobTraceReader(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
path - Path to the JSON trace file, possibly compressed.conf - java.io.IOExceptionpublic JobTraceReader(java.io.InputStream input)
throws java.io.IOException
input - The input stream for the JSON trace.java.io.IOExceptionpublic T getNext()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.