org.apache.solr.update

## Class TransactionLog.LogReader

- java.lang.Object
- - org.apache.solr.update.TransactionLog.LogReader

- Direct Known Subclasses:
    CdcrTransactionLog.CdcrLogReader, HdfsTransactionLog.HDFSLogReader
  Enclosing class:
    TransactionLog

      public class TransactionLog.LogReader
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected org.apache.solr.update.ChannelFastInputStream` | `fis`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `LogReader()`
    `` | `LogReader(long startingPos)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `long` | `currentPos()`
    `long` | `currentSize()`
    `Object` | `next()` Returns the next object from the log, or null if none available.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### fis

          protected org.apache.solr.update.ChannelFastInputStream fis

  - ### Constructor Detail

    - #### LogReader

          public LogReader(long startingPos)

    - #### 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()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### currentPos

          public long currentPos()

    - #### currentSize

          public long currentSize()
                           throws IOException

      Throws:
        `IOException`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.