| Package | Description |
|---|---|
| org.apache.hadoop.hdfs.server.datanode | |
| org.apache.hadoop.hdfs.shortcircuit |
| Modifier and Type | Method | Description |
|---|---|---|
static BlockMetadataHeader |
BlockMetadataHeader.preadHeader(java.nio.channels.FileChannel fc) |
Read the header without changing the position of the FileChannel.
|
static BlockMetadataHeader |
BlockMetadataHeader.readHeader(java.io.DataInputStream in) |
This reads all the fields till the beginning of checksum.
|
static BlockMetadataHeader |
BlockMetadataHeader.readHeader(java.io.FileInputStream fis) |
Reads header at the top of metadata file and returns the header.
|
static BlockMetadataHeader |
BlockMetadataHeader.readHeader(java.io.RandomAccessFile raf) |
Read the header at the beginning of the given block meta file.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
BlockMetadataHeader.writeHeader(java.io.DataOutputStream out,
BlockMetadataHeader header) |
This writes all the fields till the beginning of checksum.
|
| Modifier and Type | Method | Description |
|---|---|---|
BlockMetadataHeader |
ShortCircuitReplica.getMetaHeader() |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.