Examples of readDouble()


Examples of org.msgpack.unpacker.BufferUnpacker.readDouble()

  MessagePack msgpack = new MessagePack();
  BufferPacker packer = msgpack.createBufferPacker();
  packer.writeDouble(v);
  byte[] bytes = packer.toByteArray();
  BufferUnpacker unpacker = msgpack.createBufferUnpacker(bytes);
  double ret = unpacker.readDouble();
  assertEquals(v, ret, 10e-10);
    }

    @Test @Override
    public void testNil() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.BufferUnpacker.readDouble()

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  packer.writeDouble(v);
  byte[] bytes = out.toByteArray();
  BufferUnpacker unpacker = msgpack.createBufferUnpacker(bytes);
  double ret = unpacker.readDouble();
  assertEquals(v, ret, 10e-10);
    }

    @Test @Override
    public void testNil() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Converter.readDouble()

  MessagePack msgpack = new MessagePack();
        Unconverter packer = new Unconverter(msgpack);
        packer.writeDouble(v);
        Value r = packer.getResult();
        Converter unpacker = new Converter(msgpack, r);
        double ret = unpacker.readDouble();
  assertEquals(v, ret, 10e-10);
    }

    @Test @Override
    public void testNil() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readDouble()

            return;
        }
  packer.writeDouble(v);
  byte[] bytes = packer.toByteArray();
        Unpacker unpacker = msgpack.createBufferUnpacker(bytes);
  double ret = unpacker.readDouble();
  assertEquals(v, ret, 10e-10);
    }

    @Test @Override
    public void testNil() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readDouble()

            return;
        }
  packer.writeDouble(v);
  byte[] bytes = packer.toByteArray();
  Unpacker unpacker = msgpack.createUnpacker(new ByteArrayInputStream(bytes));
  double ret = unpacker.readDouble();
  assertEquals(v, ret, 10e-10);
    }

    @Test @Override
    public void testNil() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readDouble()

  MessagePack msgpack = new MessagePack();
  BufferPacker packer = msgpack.createBufferPacker();
  packer.writeDouble(v);
  byte[] bytes = packer.toByteArray();
  Unpacker unpacker = msgpack.createUnpacker(new ByteArrayInputStream(bytes));
  double ret = unpacker.readDouble();
  assertEquals(v, ret, 10e-10);
    }

    @Test @Override
    public void testNil() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readDouble()

            return;
        }
  packer.writeDouble(v);
  byte[] bytes = out.toByteArray();
  Unpacker unpacker = msgpack.createBufferUnpacker(bytes);
  double ret = unpacker.readDouble();
  assertEquals(v, ret, 10e-10);
    }

    @Test @Override
    public void testNil() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readDouble()

            return;
        }
  packer.writeDouble(v);
  byte[] bytes = out.toByteArray();
  Unpacker unpacker = msgpack.createUnpacker(new ByteArrayInputStream(bytes));
  double ret = unpacker.readDouble();
  assertEquals(v, ret, 10e-10);
    }

    @Test @Override
    public void testNil() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readDouble()

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  packer.writeDouble(v);
  ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
  Unpacker unpacker = msgpack.createUnpacker(in);
  double ret = unpacker.readDouble();
  assertEquals(v, ret, 10e-10);
    }

    @Test @Override
    public void testNil() throws Exception {
View Full Code Here

Examples of parquet.column.values.plain.PlainValuesReader.DoublePlainValuesReader.readDouble()

      final byte[] dictionaryBytes = dictionaryPage.getBytes().toByteArray();
      doubleDictionaryContent = new double[dictionaryPage.getDictionarySize()];
      DoublePlainValuesReader doubleReader = new DoublePlainValuesReader();
      doubleReader.initFromPage(dictionaryPage.getDictionarySize(), dictionaryBytes, 0);
      for (int i = 0; i < doubleDictionaryContent.length; i++) {
        doubleDictionaryContent[i] = doubleReader.readDouble();
      }
    }

    @Override
    public double decodeToDouble(int id) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.