public class JobTraceReader extends Object
LoggedJob instances.| 构造器和说明 |
|---|
JobTraceReader(InputStream input)
Constructor.
|
JobTraceReader(Path path,
Configuration conf)
Constructor.
|
public JobTraceReader(Path path, Configuration conf) throws IOException
path - Path to the JSON trace file, possibly compressed.conf - IOExceptionpublic JobTraceReader(InputStream input) throws IOException
input - The input stream for the JSON trace.IOExceptionpublic T getNext()
throws IOException
IOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2009 The Apache Software Foundation