Class FileRegion
java.lang.Object
org.apache.hadoop.hdfs.server.common.FileRegion
- All Implemented Interfaces:
BlockAlias
This class is used to represent provided blocks that are file regions,
i.e., can be described using (path, offset, length).
-
Constructor Summary
ConstructorsConstructorDescriptionFileRegion(long blockId, Path path, long offset, long length) FileRegion(long blockId, Path path, long offset, long length, long genStamp) FileRegion(long blockId, Path path, long offset, long length, long genStamp, byte[] nonce) FileRegion(org.apache.hadoop.hdfs.protocol.Block block, org.apache.hadoop.hdfs.protocol.ProvidedStorageLocation providedStorageLocation) -
Method Summary
-
Constructor Details
-
FileRegion
-
FileRegion
-
FileRegion
-
FileRegion
public FileRegion(org.apache.hadoop.hdfs.protocol.Block block, org.apache.hadoop.hdfs.protocol.ProvidedStorageLocation providedStorageLocation)
-
-
Method Details
-
getBlock
public org.apache.hadoop.hdfs.protocol.Block getBlock()- Specified by:
getBlockin interfaceBlockAlias
-
getProvidedStorageLocation
public org.apache.hadoop.hdfs.protocol.ProvidedStorageLocation getProvidedStorageLocation() -
equals
-
hashCode
public int hashCode()
-