Class ProvidedReplica

java.lang.Object
org.apache.hadoop.hdfs.protocol.Block
org.apache.hadoop.hdfs.server.datanode.ReplicaInfo
org.apache.hadoop.hdfs.server.datanode.ProvidedReplica
All Implemented Interfaces:
Comparable<org.apache.hadoop.hdfs.protocol.Block>, Replica, org.apache.hadoop.io.Writable, org.apache.hadoop.util.LightWeightGSet.LinkedElement
Direct Known Subclasses:
FinalizedProvidedReplica

@Private @Unstable public abstract class ProvidedReplica extends ReplicaInfo
This abstract class is used as a base class for provided replicas.
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • ProvidedReplica

      public ProvidedReplica(long blockId, 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)
      Constructor.
      Parameters:
      blockId - block id
      fileURI - remote URI this block is to be read from
      fileOffset - the offset in the remote URI
      blockLen - the length of the block
      genStamp - the generation stamp of the block
      volume - the volume this block belongs to
      conf - the configuration
      remoteFS - reference to the remote filesystem to use for this replica.
    • ProvidedReplica

      public ProvidedReplica(long blockId, org.apache.hadoop.fs.Path pathPrefix, 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)
      Constructor.
      Parameters:
      blockId - block id
      pathPrefix - A prefix of the Path associated with this replica on the remote FileSystem.
      pathSuffix - A suffix of the Path associated with this replica on the remote FileSystem. Resolving the pathSuffix against the pathPrefix should provide the exact Path of the data associated with this replica on the remote FileSystem.
      fileOffset - the offset in the remote URI
      blockLen - the length of the block
      genStamp - the generation stamp of the block
      volume - the volume this block belongs to
      conf - the configuration
      remoteFS - reference to the remote filesystem to use for this replica.
    • ProvidedReplica

      public ProvidedReplica(ProvidedReplica r)
  • Method Details