Package org.apache.solr.update
Class TransactionLog.LogReader
- java.lang.Object
-
- org.apache.solr.update.TransactionLog.LogReader
-
- Direct Known Subclasses:
CdcrTransactionLog.CdcrLogReader
,HdfsTransactionLog.HDFSLogReader
,TransactionLog.SortedLogReader
- Enclosing class:
- TransactionLog
public class TransactionLog.LogReader extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.solr.update.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()
-
-
-
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
-
-