Class SplitJournalFileReader
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.spi.persistence.split.SplitJournalFileReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,JournalFileReader
public class SplitJournalFileReader extends Object implements JournalFileReader
-
-
Constructor Summary
Constructors Constructor Description SplitJournalFileReader(JournalFileReader roJournalReader, JournalFileReader rwJournalReader, Optional<String> lastRoJournalEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringreadLine()Read the line from the journal, using LIFO strategy (last in, first out).
-
-
-
Constructor Detail
-
SplitJournalFileReader
public SplitJournalFileReader(JournalFileReader roJournalReader, JournalFileReader rwJournalReader, Optional<String> lastRoJournalEntry)
-
-
Method Detail
-
readLine
public String readLine() throws IOException
Description copied from interface:JournalFileReaderRead the line from the journal, using LIFO strategy (last in, first out).- Specified by:
readLinein interfaceJournalFileReader- Returns:
- the journal record
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-