BlockMetadataHeader function ( RandomAccessFile arg0 ) { byte [ ] loc0 = new byte [ getHeaderSize ( ) ] ; arg0 . seek ( 0 ) ; arg0 . readFully ( loc0 , 0 , loc0 . length ) ; return readHeader ( new DataInputStream ( new ByteArrayInputStream ( loc0 ) ) ) ; }
read the header at the beginning of the given block meta file . the current file position will be altered by this method . if an error occurs , the file is not closed . concode_field_sep DataChecksum checksum concode_elem_sep short VERSION concode_elem_sep Log LOG concode_elem_sep HdfsConfiguration conf concode_elem_sep short version concode_field_sep short getVersion concode_elem_sep void writeHeader concode_elem_sep void writeHeader concode_elem_sep DataChecksum readDataChecksum concode_elem_sep DataChecksum readDataChecksum concode_elem_sep int getHeaderSize concode_elem_sep DataChecksum getChecksum concode_elem_sep BlockMetadataHeader preadHeader