java.lang.Comparable<org.apache.hadoop.hdfs.protocol.Block>, Replica, org.apache.hadoop.io.Writable@Private public static class BlockListAsLongs.BlockReportReplica extends org.apache.hadoop.hdfs.protocol.Block implements Replica
| Constructor | Description |
|---|---|
BlockReportReplica(org.apache.hadoop.hdfs.protocol.Block block) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
long |
getBytesOnDisk() |
Get the number of bytes that have written to disk
|
HdfsServerConstants.ReplicaState |
getState() |
Get the replica state
|
java.lang.String |
getStorageUuid() |
Return the storageUuid of the volume that stores this replica.
|
long |
getVisibleLength() |
Get the number of bytes that are visible to readers
|
FsVolumeSpi |
getVolume() |
Get the volume of replica.
|
int |
hashCode() |
|
boolean |
isOnTransientStorage() |
Return true if the target volume is backed by RAM.
|
void |
setState(HdfsServerConstants.ReplicaState state) |
appendStringTo, compareTo, filename2id, getBlockId, getBlockId, getBlockName, getGenerationStamp, getGenerationStamp, getNumBytes, isBlockFilename, isMetaFilename, matchingIdAndGenStamp, metaToBlockFile, readFields, readId, set, setBlockId, setGenerationStamp, setNumBytes, toString, toString, write, writeIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBlockId, getGenerationStamp, getNumBytespublic BlockReportReplica(org.apache.hadoop.hdfs.protocol.Block block)
public void setState(HdfsServerConstants.ReplicaState state)
public HdfsServerConstants.ReplicaState getState()
Replicapublic long getBytesOnDisk()
ReplicagetBytesOnDisk in interface Replicapublic long getVisibleLength()
ReplicagetVisibleLength in interface Replicapublic java.lang.String getStorageUuid()
ReplicagetStorageUuid in interface Replicapublic boolean isOnTransientStorage()
ReplicaisOnTransientStorage in interface Replicapublic FsVolumeSpi getVolume()
Replicapublic boolean equals(java.lang.Object o)
equals in class org.apache.hadoop.hdfs.protocol.Blockpublic int hashCode()
hashCode in class org.apache.hadoop.hdfs.protocol.BlockCopyright © 2008–2025 Apache Software Foundation. All rights reserved.