#眉標=雲端運算
#副標=開放原始碼的雲端運算平台技術(8)
#大標=剖析Hadoop高效能二進位檔案格式
#作者=文/圖 沈炳宏



===<反灰>=============
程式1
static final class Magic {
  private final static byte[] AB_MAGIC_BCFILE =
  {
 (byte) 0xd1, (byte) 0x11, (byte) 0xd3, (byte) 0x68, (byte) 0x91,
 (byte) 0xb5, (byte) 0xd7, (byte) 0xb6, (byte) 0x39, (byte) 0xdf,
 (byte) 0x41, (byte) 0x40, (byte) 0x92, (byte) 0xba, (byte) 0xe1,
 (byte) 0x50 };
  public static void readAndVerify(DataInput in)
 throws IOException {
…
  }
  public static void write(DataOutput out) 
throws IOException {
…
  }
  public static int size() {
…
  }
}
==<end>==============




===<反灰>=============
程式2
public BlockRegion(DataInput in) 
throws IOException {
…
  }
public BlockRegion(
long offset, long compressedSize, long rawSize) {
…
  }
public void write(DataOutput out) 
throws IOException {
  Utils.writeVLong(out, offset);
  Utils.writeVLong(out, compressedSize);
  Utils.writeVLong(out, rawSize);
  }
==<end>==============