@Override
  public double readDouble()
      throws EOFException {
    if (availableLong() < 8) {
      throw new EOFException();
    }
    double result = _dataBuffer.getDouble(_currentOffset);
    _currentOffset += 8;
    return result;
  }
@Test
  void testReadDouble()
      throws EOFException {
    double read = _dataBufferPinotInputStream.readDouble();

    assertEquals(read, _byteBuffer.getDouble(0));
    assertEquals(_dataBufferPinotInputStream.getCurrentOffset(), Double.BYTES);
  }