Package org.apache.hadoop.hdfs.server.namenode.BlocksMap

Examples of org.apache.hadoop.hdfs.server.namenode.BlocksMap.BlockInfo.readFields()


      int numBlocks = FSImageSerialization.readInt(in);
      BlockInfo[] blocks = new BlockInfo[numBlocks];
      for (int i = 0; i < numBlocks; i++) {
        BlockInfo blk = new BlockInfo();
        if (logVersion <= -14) {
          blk.readFields(in);
          if (LayoutVersion.supports(Feature.BLOCK_CHECKSUM, logVersion)) {
            blk.setChecksum(FSImageSerialization.readInt(in));
          }
        } else {
          BlockTwo oldblk = new BlockTwo();
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.