Package org.apache.hadoop.io

Examples of org.apache.hadoop.io.DataTransferHeaderOptions.readFields()


          // De - Serialize
          DataInputStream in = new DataInputStream(
              new ByteArrayInputStream(buf));
          DataTransferHeaderOptions expectedOptions = new DataTransferHeaderOptions();
          expectedOptions
          .readFields(in);

          assertEquals(advise, expectedOptions.getFadvise());
          assertEquals(c, expectedOptions.getIoprioClass());
          assertEquals(data, expectedOptions.getIoprioData());
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.