public class StreamWrapperFileSystem extends FileSystem
FileSystem.Statistics
DEFAULT_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, supportsSymlinks
getConf, setConf
public 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 FileSystem
public FSDataInputStream open(Path path, int bufferSize) throws IOException
open
in class FileSystem
IOException
public FSDataOutputStream create(Path path, FsPermission fsPermission, boolean b, int i, short i1, long l, Progressable progressable)
create
in class FileSystem
public FSDataOutputStream append(Path path, int i, Progressable progressable)
append
in class FileSystem
public boolean rename(Path path, Path path1)
rename
in class FileSystem
public boolean delete(Path path, boolean b)
delete
in class FileSystem
public void setWorkingDirectory(Path path)
setWorkingDirectory
in class FileSystem
public Path getWorkingDirectory()
getWorkingDirectory
in class FileSystem
public boolean mkdirs(Path path, FsPermission fsPermission)
mkdirs
in class FileSystem
public FileStatus[] listStatus(Path path) throws IOException
listStatus
in class FileSystem
IOException
public FileStatus getFileStatus(Path path) throws IOException
getFileStatus
in class FileSystem
IOException
Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.