Examples of BsonDataCodec


Examples of com.linkedin.data.codec.BsonDataCodec

  */

  @Test
  public void testBsonDataCodec() throws IOException
  {
    BsonDataCodec codec = new BsonDataCodec();
    testDataCodec(codec);
  }
View Full Code Here

Examples of com.linkedin.data.codec.BsonDataCodec

  @Test
  public void testBsonStressBufferSizeDataCodec() throws IOException
  {
    for (int i = 16; i < 32; ++i)
    {
      BsonDataCodec codec = new BsonDataCodec(i, true);
      testDataCodec(codec);
    }
  }
View Full Code Here

Examples of com.linkedin.data.codec.BsonDataCodec

  private void perfTest(int count, DataMap map) throws IOException
  {
    List<DataCodec> codecs = new ArrayList<DataCodec>();
    codecs.add(new JacksonDataCodec());
    //codecs.add(new Bson4JacksonDataCodec());
    codecs.add(new BsonDataCodec());

    for (DataCodec codec : codecs)
    {
      byte[] bytes = codec.mapToBytes(map);
      out.println(codec.getClass().getName() + " serialized size " + bytes.length);
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.