@InterfaceAudience.Private @InterfaceStability.Evolving public class BlockMetadataHeader extends Object
Modifier and Type | Field and Description |
---|---|
static short |
VERSION |
Modifier and Type | Method and Description |
---|---|
DataChecksum |
getChecksum()
Get the checksum
|
static int |
getHeaderSize()
Returns the size of the header
|
short |
getVersion()
Get the version
|
static BlockMetadataHeader |
readHeader(DataInputStream in)
This reads all the fields till the beginning of checksum.
|
static BlockMetadataHeader |
readHeader(File file)
Reads header at the top of metadata file and returns the header.
|
public static final short VERSION
public short getVersion()
public DataChecksum getChecksum()
public static BlockMetadataHeader readHeader(DataInputStream in) throws IOException
in
- IOException
public static BlockMetadataHeader readHeader(File file) throws IOException
dataset
- block
- IOException
public static int getHeaderSize()
Copyright © 2013 Apache Software Foundation. All rights reserved.