public class Hadoop20JHParser extends Object implements JobHistoryParser
JobHistoryParser
to parse job histories for hadoop 0.20 (META=1).Constructor and Description |
---|
Hadoop20JHParser(InputStream input) |
Hadoop20JHParser(LineReader reader) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canParse(InputStream input)
Can this parser parse the input?
|
void |
close() |
HistoryEvent |
nextEvent()
Get the next
HistoryEvent |
public Hadoop20JHParser(InputStream input) throws IOException
IOException
public Hadoop20JHParser(LineReader reader) throws IOException
IOException
public static boolean canParse(InputStream input) throws IOException
input
- 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 HistoryEvent nextEvent()
JobHistoryParser
HistoryEvent
nextEvent
in interface JobHistoryParser
HistoryEvent
. If no more events left, return null.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.