Package | Description |
---|---|
org.apache.hadoop.fs |
An abstract file system API.
|
org.apache.hadoop.fs.viewfs |
ViewFileSystem and ViewFileSystemOverloadScheme classes.
|
org.apache.hadoop.util.functional |
Support for functional programming within the Hadoop APIs.
|
Modifier and Type | Class and Description |
---|---|
class |
BatchedRemoteIterator<K,E>
A RemoteIterator that fetches elements in batches.
|
protected class |
FileSystem.DirListingIterator<T extends FileStatus>
Generic iterator for implementing
FileSystem.listStatusIterator(Path) . |
Modifier and Type | Method and Description |
---|---|
RemoteIterator<PartialListing<LocatedFileStatus>> |
BatchListingOperations.batchedListLocatedStatusIterator(List<Path> paths)
Batched listing API that returns
PartialListing s for the passed
Paths. |
RemoteIterator<PartialListing<FileStatus>> |
BatchListingOperations.batchedListStatusIterator(List<Path> paths)
Batched listing API that returns
PartialListing s for the
passed Paths. |
RemoteIterator<Path> |
FilterFileSystem.listCorruptFileBlocks(Path path) |
RemoteIterator<Path> |
FileSystem.listCorruptFileBlocks(Path path)
List corrupted file blocks.
|
RemoteIterator<Path> |
FileContext.listCorruptFileBlocks(Path path) |
RemoteIterator<Path> |
AbstractFileSystem.listCorruptFileBlocks(Path path) |
RemoteIterator<LocatedFileStatus> |
FileSystem.listFiles(Path f,
boolean recursive)
List the statuses and block locations of the files in the given path.
|
RemoteIterator<LocatedFileStatus> |
FileContext.Util.listFiles(Path f,
boolean recursive)
List the statuses and block locations of the files in the given path.
|
RemoteIterator<LocatedFileStatus> |
FilterFileSystem.listLocatedStatus(Path f)
List files and its block locations in a directory.
|
RemoteIterator<LocatedFileStatus> |
FileSystem.listLocatedStatus(Path f)
List the statuses of the files/directories in the given path if the path is
a directory.
|
RemoteIterator<LocatedFileStatus> |
FileContext.listLocatedStatus(Path f)
List the statuses of the files/directories in the given path if the path is
a directory.
|
RemoteIterator<LocatedFileStatus> |
ChecksumFileSystem.listLocatedStatus(Path f)
List the statuses of the files/directories in the given path if the path is
a directory.
|
RemoteIterator<LocatedFileStatus> |
AbstractFileSystem.listLocatedStatus(Path f)
The specification of this method matches that of
FileContext.listLocatedStatus(Path) except that Path f
must be for this file system. |
protected RemoteIterator<LocatedFileStatus> |
FilterFileSystem.listLocatedStatus(Path f,
PathFilter filter) |
protected RemoteIterator<LocatedFileStatus> |
FileSystem.listLocatedStatus(Path f,
PathFilter filter)
List a directory.
|
RemoteIterator<FileStatus> |
FileContext.listStatus(Path f)
List the statuses of the files/directories in the given path if the path is
a directory.
|
RemoteIterator<FileStatus> |
FilterFileSystem.listStatusIterator(Path f)
Return a remote iterator for listing in a directory
|
RemoteIterator<FileStatus> |
FileSystem.listStatusIterator(Path p)
Returns a remote iterator so that followup calls are made on demand
while consuming the entries.
|
RemoteIterator<FileStatus> |
ChecksumFileSystem.listStatusIterator(Path p) |
RemoteIterator<FileStatus> |
AbstractFileSystem.listStatusIterator(Path f)
The specification of this method matches that of
FileContext.listStatus(Path) except that Path f must be for this
file system. |
Modifier and Type | Method and Description |
---|---|
RemoteIterator<LocatedFileStatus> |
ViewFs.listLocatedStatus(Path f) |
RemoteIterator<LocatedFileStatus> |
ViewFileSystem.listLocatedStatus(Path f,
PathFilter filter) |
RemoteIterator<FileStatus> |
ViewFs.listStatusIterator(Path f) |
Modifier and Type | Method and Description |
---|---|
static <S> RemoteIterator<S> |
RemoteIterators.closingRemoteIterator(RemoteIterator<S> iterator,
Closeable toClose)
This adds an extra close operation alongside the passthrough
to any Closeable.close() method supported by the source iterator.
|
static <S> RemoteIterator<S> |
RemoteIterators.filteringRemoteIterator(RemoteIterator<S> iterator,
FunctionRaisingIOE<? super S,Boolean> filter)
Create a RemoteIterator from a RemoteIterator and a filter
function which returns true for every element to be passed
through.
|
static <S,T> RemoteIterator<T> |
RemoteIterators.mappingRemoteIterator(RemoteIterator<S> iterator,
FunctionRaisingIOE<? super S,T> mapper)
Create an iterator from an iterator and a transformation function.
|
static <T> RemoteIterator<T> |
RemoteIterators.remoteIteratorFromArray(T[] array)
Create a remote iterator from an array.
|
static <T> RemoteIterator<T> |
RemoteIterators.remoteIteratorFromIterable(Iterable<T> iterable)
Create a remote iterator from a java.util.Iterable -e.g.
|
static <T> RemoteIterator<T> |
RemoteIterators.remoteIteratorFromIterator(Iterator<T> iterator)
Create a remote iterator from a java.util.Iterator.
|
static <T> RemoteIterator<T> |
RemoteIterators.remoteIteratorFromSingleton(T singleton)
Create an iterator from a singleton.
|
static <S,T> RemoteIterator<T> |
RemoteIterators.typeCastingRemoteIterator(RemoteIterator<S> iterator)
Create a RemoteIterator from a RemoteIterator, casting the
type in the process.
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
RemoteIterators.cleanupRemoteIterator(RemoteIterator<T> source)
Clean up after an iteration.
|
static <S> RemoteIterator<S> |
RemoteIterators.closingRemoteIterator(RemoteIterator<S> iterator,
Closeable toClose)
This adds an extra close operation alongside the passthrough
to any Closeable.close() method supported by the source iterator.
|
static <S> RemoteIterator<S> |
RemoteIterators.filteringRemoteIterator(RemoteIterator<S> iterator,
FunctionRaisingIOE<? super S,Boolean> filter)
Create a RemoteIterator from a RemoteIterator and a filter
function which returns true for every element to be passed
through.
|
static <T> long |
RemoteIterators.foreach(RemoteIterator<T> source,
ConsumerRaisingIOE<? super T> consumer)
Apply an operation to all values of a RemoteIterator.
|
static <S,T> RemoteIterator<T> |
RemoteIterators.mappingRemoteIterator(RemoteIterator<S> iterator,
FunctionRaisingIOE<? super S,T> mapper)
Create an iterator from an iterator and a transformation function.
|
static <T> T[] |
RemoteIterators.toArray(RemoteIterator<T> source,
T[] a)
Build an array from a RemoteIterator.
|
static <T> List<T> |
RemoteIterators.toList(RemoteIterator<T> source)
Build a list from a RemoteIterator.
|
static <S,T> RemoteIterator<T> |
RemoteIterators.typeCastingRemoteIterator(RemoteIterator<S> iterator)
Create a RemoteIterator from a RemoteIterator, casting the
type in the process.
|
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.