Class CopyFromBytes.Doubles

All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
CopyFromBytes

private static final class CopyFromBytes.Doubles extends CopyFromBytes
Inflater for sample values stored as double-precision floating point numbers. This is a copy of CopyFromBytes.Bytes implementation with only the type changed.
  • Field Details

    • bank

      private DoubleBuffer bank
      Where to copy the values that we will read.
  • Constructor Details

    • Doubles

      Doubles(ChannelDataInput input, int count, int size, int[] skips, int divisor)
      Creates a new inflater which will write in the given buffer.
  • Method Details

    • setInputOutput

      public void setInputOutput(long start, long byteCount, Buffer bank) throws IOException
      Sets the destination bank.
      Overrides:
      setInputOutput in class CopyFromBytes
      Parameters:
      start - input stream position where to start reading.
      byteCount - number of bytes to read before decompression.
      bank - where to store sample values.
      Throws:
      IOException - if an I/O operation was required and failed.
    • uncompressRow

      public void uncompressRow() throws IOException
      Reads a row of sample values.
      Overrides:
      uncompressRow in class CopyFromBytes
      Throws:
      IOException - if an error occurred while reading the input channel.