Uses of Class
org.apache.hadoop.fs.FileContext
Packages that use FileContext
Package
Description
An abstract file system API.
This package contains implementation classes for use inside
filesystems.
Generic i/o code for use when reading and writing data to the network,
to databases, and to files.
-
Uses of FileContext in org.apache.hadoop.fs
Methods in org.apache.hadoop.fs that return FileContextModifier and TypeMethodDescriptionstatic FileContextFileContext.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 FileContextFileContext.getFileContext(URI defaultFsUri) Create a FileContext for specified URI using the default config.static FileContextFileContext.getFileContext(URI defaultFsUri, Configuration aConf) Create a FileContext for specified default URI using the specified config.static FileContextFileContext.getFileContext(Configuration aConf) Create a FileContext using the passed config.protected static FileContextFileContext.getFileContext(AbstractFileSystem defaultFS) Create a FileContext for specified file system using the default config.static FileContextFileContext.getFileContext(AbstractFileSystem defFS, Configuration aConf) Create a FileContext with specified FS as default using the specified config.static FileContextFileContext.getLocalFSFileContext()static FileContextFileContext.getLocalFSFileContext(Configuration aConf) static FileContextFileUtil.write(FileContext fileContext, Path path, byte[] bytes) Writes bytes to a file.static FileContextFileUtil.write(FileContext fileContext, Path path, CharSequence charseq) Write a line of text to a file.static FileContextFileUtil.write(FileContext fs, Path path, CharSequence charseq, Charset cs) Write a line of text to a file.static FileContextFileUtil.write(FileContext fileContext, Path path, Iterable<? extends CharSequence> lines, Charset cs) Write lines of text to a file.Methods in org.apache.hadoop.fs with parameters of type FileContextModifier and TypeMethodDescriptionstatic Globber.GlobBuilderGlobber.createGlobber(FileContext fileContext) Create a builder for a Globber, bonded to the specific file context.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 FileContextFileUtil.write(FileContext fileContext, Path path, byte[] bytes) Writes bytes to a file.static FileContextFileUtil.write(FileContext fileContext, Path path, CharSequence charseq) Write a line of text to a file.static FileContextFileUtil.write(FileContext fs, Path path, CharSequence charseq, Charset cs) Write a line of text to a file.static FileContextFileUtil.write(FileContext fileContext, Path path, Iterable<? extends CharSequence> lines, Charset cs) Write lines of text to a file.Constructors in org.apache.hadoop.fs with parameters of type FileContextModifierConstructorDescriptionAvroFSInput(FileContext fc, Path p) Construct given aFileContextand aPath.Construct bonded to a file context. -
Uses of FileContext in org.apache.hadoop.fs.impl
Methods in org.apache.hadoop.fs.impl with parameters of type FileContextModifier and TypeMethodDescriptionstatic <T> TFsLinkResolution.resolve(FileContext fileContext, Path path, FsLinkResolution.FsLinkResolutionFunction<T> fn) Apply the given function to the resolved path under the the supplied FileContext.Constructors in org.apache.hadoop.fs.impl with parameters of type FileContextModifierConstructorDescriptionprotectedFutureDataInputStreamBuilderImpl(FileContext fc, Path path) Construct from aFileContext.protectedConstruct from aFileContext. -
Uses of FileContext in org.apache.hadoop.io
Methods in org.apache.hadoop.io with parameters of type FileContextModifier and TypeMethodDescriptionstatic SequenceFile.WriterSequenceFile.createWriter(FileContext fc, Configuration conf, Path name, Class keyClass, Class valClass, SequenceFile.CompressionType compressionType, CompressionCodec codec, SequenceFile.Metadata metadata, EnumSet<CreateFlag> createFlag, Options.CreateOpts... opts) Construct the preferred type of SequenceFile Writer.