java.io.Closeable, java.lang.AutoCloseable, JobHistoryParserpublic class Hadoop20JHParser extends java.lang.Object implements JobHistoryParser
JobHistoryParser to parse job histories for hadoop 0.20 (META=1).| Constructor | Description |
|---|---|
Hadoop20JHParser(java.io.InputStream input) |
|
Hadoop20JHParser(org.apache.hadoop.util.LineReader reader) |
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
canParse(java.io.InputStream input) |
Can this parser parse the input?
|
void |
close() |
|
org.apache.hadoop.mapreduce.jobhistory.HistoryEvent |
nextEvent() |
Get the next
HistoryEvent |
public Hadoop20JHParser(java.io.InputStream input)
throws java.io.IOException
java.io.IOExceptionpublic Hadoop20JHParser(org.apache.hadoop.util.LineReader reader)
throws java.io.IOException
java.io.IOExceptionpublic static boolean canParse(java.io.InputStream input)
throws java.io.IOException
input - java.io.IOException - We will deem a stream to be a good 0.20 job history stream if the
first line is exactly "Meta VERSION=\"1\" ."public org.apache.hadoop.mapreduce.jobhistory.HistoryEvent nextEvent()
JobHistoryParserHistoryEventnextEvent in interface JobHistoryParserHistoryEvent. If no more events left, return null.public 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.