@InterfaceAudience.Private @InterfaceStability.Unstable public class HdfsBlocksMetadata extends Object
Constructor and Description |
---|
HdfsBlocksMetadata(ExtendedBlock[] blocks,
List<byte[]> volumeIds,
List<Integer> volumeIndexes)
Constructs HdfsBlocksMetadata.
|
Modifier and Type | Method and Description |
---|---|
ExtendedBlock[] |
getBlocks()
Get the array of blocks.
|
List<byte[]> |
getVolumeIds()
Get the list of volume identifiers in raw byte form.
|
List<Integer> |
getVolumeIndexes()
Get a list of indexes into the array of
VolumeId s, one per block. |
public HdfsBlocksMetadata(ExtendedBlock[] blocks, List<byte[]> volumeIds, List<Integer> volumeIndexes)
blocks
- List of blocks describedvolumeIds
- List of potential volume identifiers, specifying volumes where
blocks may be storedvolumeIndexes
- Indexes into the list of volume identifiers, one per blockpublic ExtendedBlock[] getBlocks()
public List<byte[]> getVolumeIds()
Copyright © 2013 Apache Software Foundation. All rights reserved.