java.lang.Comparable<org.apache.hadoop.hdfs.protocol.Block>, Replica, org.apache.hadoop.io.Writable, org.apache.hadoop.util.LightWeightGSet.LinkedElement@Private @Unstable public class FinalizedProvidedReplica extends ProvidedReplica
LOG| Constructor | Description |
|---|---|
FinalizedProvidedReplica(long blockId,
java.net.URI fileURI,
long fileOffset,
long blockLen,
long genStamp,
org.apache.hadoop.fs.PathHandle pathHandle,
FsVolumeSpi volume,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem remoteFS) |
|
FinalizedProvidedReplica(long blockId,
org.apache.hadoop.fs.Path pathPrefix,
java.lang.String pathSuffix,
long fileOffset,
long blockLen,
long genStamp,
org.apache.hadoop.fs.PathHandle pathHandle,
FsVolumeSpi volume,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem remoteFS) |
|
FinalizedProvidedReplica(FileRegion fileRegion,
FsVolumeSpi volume,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem remoteFS) |
| Modifier and Type | Method | Description |
|---|---|---|
ReplicaRecoveryInfo |
createInfo() |
|
boolean |
equals(java.lang.Object o) |
|
long |
getBytesOnDisk() |
Get the number of bytes that have written to disk
|
ReplicaInfo |
getOriginalReplica() |
|
long |
getRecoveryID() |
Get the recovery id.
|
HdfsServerConstants.ReplicaState |
getState() |
Get the replica state
|
long |
getVisibleLength() |
Get the number of bytes that are visible to readers
|
int |
hashCode() |
|
void |
setRecoveryID(long recoveryId) |
Set the recovery id.
|
java.lang.String |
toString() |
blockDataExists, breakHardLinksIfNeeded, bumpReplicaGS, compareWith, copyBlockdata, copyMetadata, deleteBlockData, deleteMetadata, getBlockDataLength, getBlockURI, getDataInputStream, getDataOutputStream, getMetadataInputStream, getMetadataLength, getMetadataOutputStream, getMetadataURI, getPathPrefix, getPathSuffix, getPinning, metadataExists, renameData, renameMeta, setPathHandle, setPinning, truncateBlock, updateWithReplicagetBytesReserved, getFileIoProvider, getNext, getOriginalBytesReserved, getStorageUuid, getVolume, isOnTransientStorage, setNextappendStringTo, compareTo, filename2id, getBlockId, getBlockId, getBlockName, getGenerationStamp, getGenerationStamp, getNumBytes, isBlockFilename, isMetaFilename, matchingIdAndGenStamp, metaToBlockFile, readFields, readId, set, setBlockId, setGenerationStamp, setNumBytes, toString, write, writeIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBlockId, getGenerationStamp, getNumBytespublic FinalizedProvidedReplica(long blockId,
java.net.URI fileURI,
long fileOffset,
long blockLen,
long genStamp,
org.apache.hadoop.fs.PathHandle pathHandle,
FsVolumeSpi volume,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem remoteFS)
public FinalizedProvidedReplica(FileRegion fileRegion, FsVolumeSpi volume, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem remoteFS)
public FinalizedProvidedReplica(long blockId,
org.apache.hadoop.fs.Path pathPrefix,
java.lang.String pathSuffix,
long fileOffset,
long blockLen,
long genStamp,
org.apache.hadoop.fs.PathHandle pathHandle,
FsVolumeSpi volume,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem remoteFS)
public HdfsServerConstants.ReplicaState getState()
Replicapublic long getBytesOnDisk()
Replicapublic long getVisibleLength()
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.Blockpublic java.lang.String toString()
toString in class ReplicaInfopublic ReplicaInfo getOriginalReplica()
getOriginalReplica in class ReplicaInfopublic long getRecoveryID()
ReplicaInfogetRecoveryID in class ReplicaInfopublic void setRecoveryID(long recoveryId)
ReplicaInfosetRecoveryID in class ReplicaInforecoveryId - the new recoveryIdpublic ReplicaRecoveryInfo createInfo()
createInfo in class ProvidedReplicaCopyright © 2008–2025 Apache Software Foundation. All rights reserved.