public class StreamWrapperFileSystem extends FileSystem
FileSystem.StatisticsDEFAULT_FS, FS_DEFAULT_NAME_KEY, LOG, SHUTDOWN_HOOK_PRIORITY, statistics| Constructor and Description |
|---|
StreamWrapperFileSystem(FSDataInputStream stream,
FileStatus status,
Configuration conf)
Create a FileSystem that only has information about the given stream.
|
StreamWrapperFileSystem(FSDataInputStream stream,
Path path,
long fileSize,
Configuration conf)
Create a FileSystem that only has information about the given stream.
|
| Modifier and Type | Method and Description |
|---|---|
FSDataOutputStream |
append(Path path,
int i,
Progressable progressable) |
FSDataOutputStream |
create(Path path,
FsPermission fsPermission,
boolean b,
int i,
short i1,
long l,
Progressable progressable) |
boolean |
delete(Path path,
boolean b) |
FileStatus |
getFileStatus(Path path) |
URI |
getUri() |
Path |
getWorkingDirectory() |
FileStatus[] |
listStatus(Path path) |
boolean |
mkdirs(Path path,
FsPermission fsPermission) |
FSDataInputStream |
open(Path path,
int bufferSize) |
boolean |
rename(Path path,
Path path1) |
void |
setWorkingDirectory(Path path) |
addDelegationTokens, append, append, cancelDeleteOnExit, canonicalizeUri, checkPath, clearStatistics, close, closeAll, closeAllForUGI, completeLocalOutput, concat, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, create, create, createNewFile, createNonRecursive, createNonRecursive, createNonRecursive, createSnapshot, createSnapshot, createSymlink, delete, deleteOnExit, deleteSnapshot, enableSymlinks, exists, fixRelativePart, get, get, get, getAllStatistics, getBlockSize, getCanonicalServiceName, getCanonicalUri, getChildFileSystems, getContentSummary, getDefaultBlockSize, getDefaultBlockSize, getDefaultPort, getDefaultReplication, getDefaultReplication, getDefaultUri, getDelegationToken, getFileBlockLocations, getFileBlockLocations, getFileChecksum, getFileLinkStatus, getFileSystemClass, getFSofPath, getHomeDirectory, getInitialWorkingDirectory, getLength, getLinkTarget, getLocal, getName, getNamed, getReplication, getScheme, getServerDefaults, getServerDefaults, getStatistics, getStatistics, getStatus, getStatus, getUsed, globStatus, globStatus, initialize, isDirectory, isFile, isSymlinksEnabled, listCorruptFileBlocks, listFiles, listLocatedStatus, listLocatedStatus, listStatus, listStatus, listStatus, makeQualified, mkdirs, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, newInstance, newInstance, newInstance, newInstanceLocal, open, primitiveCreate, primitiveMkdir, primitiveMkdir, printStatistics, processDeleteOnExit, rename, renameSnapshot, resolveLink, resolvePath, setDefaultUri, setDefaultUri, setOwner, setPermission, setReplication, setTimes, setVerifyChecksum, setWriteChecksum, startLocalOutput, supportsSymlinksgetConf, setConfpublic StreamWrapperFileSystem(FSDataInputStream stream, FileStatus status, Configuration conf)
stream - the data of the streamstatus - the file status of the streamconf - the configuration to usepublic StreamWrapperFileSystem(FSDataInputStream stream, Path path, long fileSize, Configuration conf)
stream - the data of the streampath - the file name of the streamfileSize - the length of the stream in bytesconf - the configuration to usepublic URI getUri()
getUri in class FileSystempublic FSDataInputStream open(Path path, int bufferSize) throws IOException
open in class FileSystemIOExceptionpublic FSDataOutputStream create(Path path, FsPermission fsPermission, boolean b, int i, short i1, long l, Progressable progressable)
create in class FileSystempublic FSDataOutputStream append(Path path, int i, Progressable progressable)
append in class FileSystempublic boolean rename(Path path, Path path1)
rename in class FileSystempublic boolean delete(Path path, boolean b)
delete in class FileSystempublic void setWorkingDirectory(Path path)
setWorkingDirectory in class FileSystempublic Path getWorkingDirectory()
getWorkingDirectory in class FileSystempublic boolean mkdirs(Path path, FsPermission fsPermission)
mkdirs in class FileSystempublic FileStatus[] listStatus(Path path) throws IOException
listStatus in class FileSystemIOExceptionpublic FileStatus getFileStatus(Path path) throws IOException
getFileStatus in class FileSystemIOExceptionCopyright © 2013–2022 The Apache Software Foundation. All rights reserved.