org.apache.oozie.util
Class SimpleTimestampedMessageParser

java.lang.Object
  extended by org.apache.oozie.util.TimestampedMessageParser
      extended by org.apache.oozie.util.SimpleTimestampedMessageParser

public class SimpleTimestampedMessageParser
extends TimestampedMessageParser

A simplified version of TimestampedMessageParser which doesn't do any filtering when reading the lines from the Reader. This is useful when processing a Reader where the lines have already been filtered, so we can be more efficient by not doing the same filtering again.


Field Summary
 
Fields inherited from class org.apache.oozie.util.TimestampedMessageParser
count, reader
 
Constructor Summary
SimpleTimestampedMessageParser(BufferedReader reader, XLogFilter filter)
           
 
Method Summary
protected  String parseNextLine()
          This implementation simply returns the next line from the Reader.
 
Methods inherited from class org.apache.oozie.util.TimestampedMessageParser
closeReader, getLastMessage, getLastTimestamp, increment, processRemaining, processRemaining, processRemaining
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTimestampedMessageParser

public SimpleTimestampedMessageParser(BufferedReader reader,
                                      XLogFilter filter)
Method Detail

parseNextLine

protected String parseNextLine()
                        throws IOException
This implementation simply returns the next line from the Reader.

Overrides:
parseNextLine in class TimestampedMessageParser
Returns:
The next line from the Reader
Throws:
IOException


Copyright © 2015 Apache Software Foundation. All Rights Reserved.