| Package | Description |
|---|---|
| org.apache.hadoop.fs |
An abstract file system API.
|
| org.apache.hadoop.fs.impl |
This package contains implementation classes for use inside
filesystems.
|
| org.apache.hadoop.io |
Generic i/o code for use when reading and writing data to the network,
to databases, and to files.
|
| Modifier and Type | Method | Description |
|---|---|---|
static FileContext |
FileContext.getFileContext() |
Create a FileContext using the default config read from the
$HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
from core-defaults.xml in the release jar.
|
static FileContext |
FileContext.getFileContext(java.net.URI defaultFsUri) |
Create a FileContext for specified URI using the default config.
|
static FileContext |
FileContext.getFileContext(java.net.URI defaultFsUri,
Configuration aConf) |
Create a FileContext for specified default URI using the specified config.
|
static FileContext |
FileContext.getFileContext(Configuration aConf) |
Create a FileContext using the passed config.
|
protected static FileContext |
FileContext.getFileContext(AbstractFileSystem defaultFS) |
Create a FileContext for specified file system using the default config.
|
static FileContext |
FileContext.getFileContext(AbstractFileSystem defFS,
Configuration aConf) |
Create a FileContext with specified FS as default using the specified
config.
|
static FileContext |
FileContext.getLocalFSFileContext() |
|
static FileContext |
FileContext.getLocalFSFileContext(Configuration aConf) |
|
static FileContext |
FileUtil.write(FileContext fileContext,
Path path,
byte[] bytes) |
Writes bytes to a file.
|
static FileContext |
FileUtil.write(FileContext fileContext,
Path path,
java.lang.CharSequence charseq) |
Write a line of text to a file.
|
static FileContext |
FileUtil.write(FileContext fs,
Path path,
java.lang.CharSequence charseq,
java.nio.charset.Charset cs) |
Write a line of text to a file.
|
static FileContext |
FileUtil.write(FileContext fileContext,
Path path,
java.lang.Iterable<? extends java.lang.CharSequence> lines,
java.nio.charset.Charset cs) |
Write lines of text to a file.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Globber.GlobBuilder |
Globber.createGlobber(FileContext fileContext) |
Create a builder for a Globber, bonded to the specific file
context.
|
T |
FSLinkResolver.resolve(FileContext fc,
Path path) |
Performs the operation specified by the next function, calling it
repeatedly until all symlinks in the given path are resolved.
|
static FileContext |
FileUtil.write(FileContext fileContext,
Path path,
byte[] bytes) |
Writes bytes to a file.
|
static FileContext |
FileUtil.write(FileContext fileContext,
Path path,
java.lang.CharSequence charseq) |
Write a line of text to a file.
|
static FileContext |
FileUtil.write(FileContext fs,
Path path,
java.lang.CharSequence charseq,
java.nio.charset.Charset cs) |
Write a line of text to a file.
|
static FileContext |
FileUtil.write(FileContext fileContext,
Path path,
java.lang.Iterable<? extends java.lang.CharSequence> lines,
java.nio.charset.Charset cs) |
Write lines of text to a file.
|
| Constructor | Description |
|---|---|
AvroFSInput(FileContext fc,
Path p) |
Construct given a
FileContext and a Path. |
GlobBuilder(FileContext fc) |
Construct bonded to a file context.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T> T |
FsLinkResolution.resolve(FileContext fileContext,
Path path,
FsLinkResolution.FsLinkResolutionFunction<T> fn) |
Apply the given function to the resolved path under the the supplied
FileContext.
|
| Constructor | Description |
|---|---|
FutureDataInputStreamBuilderImpl(FileContext fc,
Path path) |
Construct from a
FileContext. |
MultipartUploaderBuilderImpl(FileContext fc,
Path p) |
Construct from a
FileContext. |
| Modifier and Type | Method | Description |
|---|---|---|
static SequenceFile.Writer |
SequenceFile.createWriter(FileContext fc,
Configuration conf,
Path name,
java.lang.Class keyClass,
java.lang.Class valClass,
SequenceFile.CompressionType compressionType,
CompressionCodec codec,
SequenceFile.Metadata metadata,
java.util.EnumSet<CreateFlag> createFlag,
Options.CreateOpts... opts) |
Construct the preferred type of SequenceFile Writer.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.