| Package | Description |
|---|---|
| org.apache.hadoop.hdfs | |
| org.apache.hadoop.hdfs.protocol |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.hadoop.hdfs.protocolPB |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| Modifier and Type | Method and Description |
|---|---|
BlockType |
ReadStatistics.getBlockType() |
| Modifier and Type | Method and Description |
|---|---|
static BlockType |
BlockType.fromBlockId(long blockId)
Parse a BlockId to find the BlockType
Note: the old block id generation algorithm was based on a pseudo random
number generator, so there may be legacy blocks that make this conversion
unreliable.
|
static BlockType |
BlockType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockType[] |
BlockType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static BlockType |
PBHelperClient.convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockTypeProto blockType) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.BlockTypeProto |
PBHelperClient.convert(BlockType blockType) |
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.