Package org.apache.solr.update
Class HdfsTransactionLog.HDFSLogReader
- java.lang.Object
-
- org.apache.solr.update.TransactionLog.LogReader
-
- org.apache.solr.update.HdfsTransactionLog.HDFSLogReader
-
- Direct Known Subclasses:
HdfsTransactionLog.HDFSSortedLogReader
- Enclosing class:
- HdfsTransactionLog
public class HdfsTransactionLog.HDFSLogReader extends TransactionLog.LogReader
-
-
Constructor Summary
Constructors Constructor Description HDFSLogReader(long startingPos)
-
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.- Overrides:
next
in classTransactionLog.LogReader
- Returns:
- The log record, or null if EOF
- Throws:
IOException
- If there is a low-level I/O error.InterruptedException
-
close
public void close()
- Overrides:
close
in classTransactionLog.LogReader
-
toString
public String toString()
- Overrides:
toString
in classTransactionLog.LogReader
-
currentPos
public long currentPos()
- Overrides:
currentPos
in classTransactionLog.LogReader
-
currentSize
public long currentSize()
- Overrides:
currentSize
in classTransactionLog.LogReader
-
-