Package com.linkedin.data.codec

Examples of com.linkedin.data.codec.BsonDataCodec$BsonParser


  */

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


  @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

  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

Related Classes of com.linkedin.data.codec.BsonDataCodec$BsonParser

Copyright © 2018 www.massapicom. 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.