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 void
close()
String
readLine()
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:JournalFileReader
Read the line from the journal, using LIFO strategy (last in, first out).- Specified by:
readLine
in interfaceJournalFileReader
- Returns:
- the journal record
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-