Class FixedBlockMultiReplicaResolver
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.BlockResolver
org.apache.hadoop.hdfs.server.namenode.FixedBlockResolver
org.apache.hadoop.hdfs.server.namenode.FixedBlockMultiReplicaResolver
- All Implemented Interfaces:
Configurable
Resolver mapping all files to a configurable, uniform blocksize
and replication.
-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hdfs.server.namenode.FixedBlockResolver
BLOCKSIZE, BLOCKSIZE_DEFAULT, START_BLOCK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetConf(Configuration conf) Set the configuration to be used by this object.Methods inherited from class org.apache.hadoop.hdfs.server.namenode.FixedBlockResolver
blockLengths, getConf, lastId, nextId, preferredBlockSizeMethods inherited from class org.apache.hadoop.hdfs.server.namenode.BlockResolver
buildBlock, buildBlock, resolve
-
Field Details
-
REPLICATION
- See Also:
-
-
Constructor Details
-
FixedBlockMultiReplicaResolver
public FixedBlockMultiReplicaResolver()
-
-
Method Details
-
setConf
Description copied from interface:ConfigurableSet the configuration to be used by this object.- Specified by:
setConfin interfaceConfigurable- Overrides:
setConfin classFixedBlockResolver- Parameters:
conf- configuration to be used
-
getReplication
- Overrides:
getReplicationin classFixedBlockResolver- Parameters:
s- the external reference.- Returns:
- the replication to assign to this external reference.
-