Uses of Class
org.apache.hadoop.fs.BlockLocation
Packages that use BlockLocation
Package
Description
Implementations of
AbstractFileSystem for hdfs
over rpc and hdfs over web.ViewFileSystem and ViewFileSystemOverloadScheme classes.
-
Uses of BlockLocation in org.apache.hadoop.fs
Methods in org.apache.hadoop.fs that return BlockLocationModifier and TypeMethodDescriptionLocatedFileStatus.getBlockLocations()Get the file's block locations In HDFS, the returned BlockLocation will have different formats for replicated and erasure coded file.abstract BlockLocation[]AbstractFileSystem.getFileBlockLocations(Path f, long start, long len) The specification of this method matches that ofFileContext.getFileBlockLocations(Path, long, long)except that Path f must be for this file system.FileContext.getFileBlockLocations(Path f, long start, long len) Return blockLocation of the given file for the given offset and len.FileSystem.getFileBlockLocations(FileStatus file, long start, long len) Return an array containing hostnames, offset and size of portions of the given file.FileSystem.getFileBlockLocations(Path p, long start, long len) Return an array containing hostnames, offset and size of portions of the given file.FilterFileSystem.getFileBlockLocations(FileStatus file, long start, long len) Methods in org.apache.hadoop.fs with parameters of type BlockLocationModifier and TypeMethodDescriptionprotected voidLocatedFileStatus.setBlockLocations(BlockLocation[] locations) Hook for subclasses to lazily set block locations.Constructors in org.apache.hadoop.fs with parameters of type BlockLocationModifierConstructorDescriptionBlockLocation(BlockLocation that) Copy constructor.LocatedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, boolean hasAcl, boolean isEncrypted, boolean isErasureCoded, BlockLocation[] locations) Constructor.LocatedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, Set<FileStatus.AttrFlags> attr, BlockLocation[] locations) Constructor.LocatedFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, FsPermission permission, String owner, String group, Path symlink, Path path, BlockLocation[] locations) Deprecated.LocatedFileStatus(FileStatus stat, BlockLocation[] locations) Constructor -
Uses of BlockLocation in org.apache.hadoop.fs.viewfs
Methods in org.apache.hadoop.fs.viewfs that return BlockLocationModifier and TypeMethodDescriptionViewFileSystem.getFileBlockLocations(FileStatus fs, long start, long len) ViewFs.getFileBlockLocations(Path f, long start, long len) -
Uses of BlockLocation in org.apache.hadoop.mapred
Methods in org.apache.hadoop.mapred with parameters of type BlockLocationModifier and TypeMethodDescriptionprotected intFileInputFormat.getBlockIndex(BlockLocation[] blkLocations, long offset) protected String[]FileInputFormat.getSplitHosts(BlockLocation[] blkLocations, long offset, long splitSize, org.apache.hadoop.net.NetworkTopology clusterMap) This function identifies and returns the hosts that contribute most for a given split. -
Uses of BlockLocation in org.apache.hadoop.mapreduce.lib.input
Methods in org.apache.hadoop.mapreduce.lib.input that return BlockLocationModifier and TypeMethodDescriptionprotected BlockLocation[]CombineFileInputFormat.getFileBlockLocations(FileSystem fs, FileStatus stat) Methods in org.apache.hadoop.mapreduce.lib.input with parameters of type BlockLocationModifier and TypeMethodDescriptionprotected intFileInputFormat.getBlockIndex(BlockLocation[] blkLocations, long offset)