public class Hadoop20JHParser extends Object implements JobHistoryParser
JobHistoryParser
to parse job histories for hadoop 0.20 (META=1).构造器和说明 |
---|
Hadoop20JHParser(InputStream input) |
Hadoop20JHParser(LineReader reader) |
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
在接口中 JobHistoryParser
HistoryEvent
. If no more events left, return null.public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
IOException
Copyright © 2009 The Apache Software Foundation