Class TransactionLog.ChannelFastInputStream

java.lang.Object
java.io.InputStream
org.apache.solr.common.util.DataInputInputStream
org.apache.solr.common.util.FastInputStream
org.apache.solr.update.TransactionLog.ChannelFastInputStream
All Implemented Interfaces:
Closeable, DataInput, AutoCloseable
Enclosing class:
TransactionLog

public static class TransactionLog.ChannelFastInputStream extends org.apache.solr.common.util.FastInputStream
  • Field Details

  • Constructor Details

    • ChannelFastInputStream

      public ChannelFastInputStream(FileChannel ch, long chPosition)
  • Method Details

    • readWrappedStream

      public int readWrappedStream(byte[] target, int offset, int len) throws IOException
      Overrides:
      readWrappedStream in class org.apache.solr.common.util.FastInputStream
      Throws:
      IOException
    • seek

      public void seek(long position) throws IOException
      Throws:
      IOException
    • getBufferPos

      public long getBufferPos()
      where is the start of the buffer relative to the whole file
    • getBufferSize

      public int getBufferSize()
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class org.apache.solr.common.util.FastInputStream
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object