## Uses of Class
org.apache.hadoop.fs.BlockLocation

- Packages that use BlockLocation
  Package | Description
  --- | ---
  org.apache.hadoop.fs | An abstract file system API.
  org.apache.hadoop.fs.viewfs | ViewFileSystem and ViewFileSystemOverloadScheme classes.

- - ### Uses of BlockLocation in org.apache.hadoop.fs

    Methods in org.apache.hadoop.fs that return BlockLocation
    Modifier and Type | Method and Description
    --- | ---
    `BlockLocation[]` | LocatedFileStatus.`getBlockLocations()` Get the file's block locations In HDFS, the returned BlockLocation will have different formats for replicated and erasure coded file.
    `BlockLocation[]` | FileSystem.`getFileBlockLocations(FileStatus file, long start, long len)` Return an array containing hostnames, offset and size of portions of the given file.
    `BlockLocation[]` | HarFileSystem.`getFileBlockLocations(FileStatus file, long start, long len)` Get block locations from the underlying fs and fix their offsets and lengths.
    `BlockLocation[]` | FilterFileSystem.`getFileBlockLocations(FileStatus file, long start, long len)`
    `BlockLocation[]` | FileSystem.`getFileBlockLocations(Path p, long start, long len)` Return an array containing hostnames, offset and size of portions of the given file.
    `abstract BlockLocation[]` | AbstractFileSystem.`getFileBlockLocations(Path f, long start, long len)` The specification of this method matches that of `FileContext.getFileBlockLocations(Path, long, long)` except that Path f must be for this file system.

    Methods in org.apache.hadoop.fs with parameters of type BlockLocation
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | LocatedFileStatus.`setBlockLocations(BlockLocation[] locations)` Hook for subclasses to lazily set block locations.

    Constructors in org.apache.hadoop.fs with parameters of type BlockLocation
    Constructor and Description
    `BlockLocation(BlockLocation that)` Copy constructor
    `LocatedFileStatus(FileStatus stat, 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(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.

  - ### Uses of BlockLocation in org.apache.hadoop.fs.viewfs

    Methods in org.apache.hadoop.fs.viewfs with annotations of type with type parameters of type that implement declared as with annotations of type with type parameters of type with annotations of type with annotations of type with type parameters of type that return that return types with arguments of type with parameters of type with type arguments of type that throw with annotations of type with annotations of type with parameters of type with type arguments of type that throw BlockLocation
    Modifier and Type | Method and Description
    --- | ---
    `BlockLocation[]` | ViewFileSystem.`getFileBlockLocations(FileStatus fs, long start, long len)`
    `BlockLocation[]` | ViewFs.`getFileBlockLocations(Path f, long start, long len)`

Copyright © 2008–2022 Apache Software Foundation. All rights reserved.