Class BinaryStoreReaderV1

All Implemented Interfaces:
BinaryStoreReader, SkipableTableReader, TableReader

@Deprecated public class BinaryStoreReaderV1 extends AbstractBinaryStoreReaderV1 implements SkipableTableReader
Deprecated.
Table reader for Version 1 of the binary store.
  • Constructor Details

  • Method Details

    • setBlocking

      public void setBlocking(boolean blocking)
      Deprecated.
      Description copied from interface: SkipableTableReader
      As implemented, blocking means sleep and retry.
      Specified by:
      setBlocking in interface SkipableTableReader
    • getSize

      public long getSize() throws IOException
      Deprecated.
      Specified by:
      getSize in interface SkipableTableReader
      Throws:
      IOException
    • skipToRecord

      public void skipToRecord(long recordNo) throws IOException
      Deprecated.
      Specified by:
      skipToRecord in interface SkipableTableReader
      Throws:
      IOException
    • seek

      public void seek(long position) throws IOException
      Deprecated.
      Throws:
      IOException
    • close

      public void close() throws IOException
      Deprecated.
      Description copied from interface: TableReader
      Close the input source for this TableReader.
      Specified by:
      close in interface TableReader
      Throws:
      IOException
    • readData

      protected void readData(int minAmount, ByteBuffer dataBuffer) throws IOException
      Deprecated.
      If this reader is not in blocking mode, read up to dataBuffer.remaining() bytes and return.

      If blocking, read at least minAmount bytes from the input channel. Sleep 1 second between attempts to get more data up to minAmount. Do not acknowledge EOF, hoping more data will appear.

      Specified by:
      readData in class AbstractBinaryStoreReader
      Parameters:
      minAmount - don't return without this many bytes (if blocking)
      dataBuffer - put the bytes in ths buffer.
      Throws:
      IOException