Package org.elasticsearch.hadoop.util

Examples of org.elasticsearch.hadoop.util.FastByteArrayOutputStream.bytes()


    DataOutputStream da = new DataOutputStream(out);
    written.write(da);
    da.close();
   
    LinkedMapWritable read = new LinkedMapWritable();
    read.readFields(new DataInputStream(new FastByteArrayInputStream(out.bytes())));
    assertThat(read.size(), is(written.size()));
    assertThat(read.toString(), is(written.toString()));
  }
}
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.