question: public LogMessage readLogBatch ( LogMessage startLog , List < LogMessage > logBatch ) throws IOException , CompressorException { long batchTime = startLog . getTime ( ) ; logBatch . add ( startLog ) ; LogMessage msg ; while ( ( msg = readNextMergedLogMessage ( ) ) != null ) { if ( msg . getTime ( ) == batchTime ) { logBatch . add ( msg ) ; } else { return msg ; } } return null ; }
target:  Read a batch of logs that share the same timestamp and return the first subsequent log that has a different timestamp.