Package org.apache.solr.update
Class TransactionLog.LogReader
- java.lang.Object
-
- org.apache.solr.update.TransactionLog.LogReader
-
- Direct Known Subclasses:
TransactionLog.SortedLogReader
- Enclosing class:
- TransactionLog
public class TransactionLog.LogReader extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected TransactionLog.ChannelFastInputStream
fis
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
currentPos()
long
currentSize()
Object
next()
Returns the next object from the log, or null if none available.String
toString()
-
-
-
Field Detail
-
fis
protected TransactionLog.ChannelFastInputStream fis
-
-
Constructor Detail
-
LogReader
public LogReader(long startingPos) throws IOException
- Throws:
IOException
-
LogReader
protected LogReader()
-
-
Method Detail
-
next
public Object next() throws IOException, InterruptedException
Returns the next object from the log, or null if none available.- Returns:
- The log record, or null if EOF
- Throws:
IOException
- If there is a low-level I/O error.InterruptedException
-
close
public void close()
-
currentPos
public long currentPos()
-
currentSize
public long currentSize() throws IOException
- Throws:
IOException
-
-