org.apache.accumulo.server.trace
Class TraceFileSystem
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.fs.FileSystem
org.apache.accumulo.server.trace.TraceFileSystem
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.conf.Configurable
public class TraceFileSystem
- extends org.apache.hadoop.fs.FileSystem
| Nested classes/interfaces inherited from class org.apache.hadoop.fs.FileSystem |
org.apache.hadoop.fs.FileSystem.Statistics |
| Fields inherited from class org.apache.hadoop.fs.FileSystem |
LOG, statistics |
|
Method Summary |
org.apache.hadoop.fs.FSDataOutputStream |
append(org.apache.hadoop.fs.Path f)
|
org.apache.hadoop.fs.FSDataOutputStream |
append(org.apache.hadoop.fs.Path f,
int bufferSize)
|
org.apache.hadoop.fs.FSDataOutputStream |
append(org.apache.hadoop.fs.Path f,
int bufferSize,
org.apache.hadoop.util.Progressable progress)
|
void |
close()
|
void |
completeLocalOutput(org.apache.hadoop.fs.Path fsOutputFile,
org.apache.hadoop.fs.Path tmpLocalFile)
|
void |
copyFromLocalFile(boolean delSrc,
boolean overwrite,
org.apache.hadoop.fs.Path[] srcs,
org.apache.hadoop.fs.Path dst)
|
void |
copyFromLocalFile(boolean delSrc,
boolean overwrite,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
|
void |
copyFromLocalFile(boolean delSrc,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
|
void |
copyFromLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
|
void |
copyToLocalFile(boolean delSrc,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
|
void |
copyToLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
|
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f)
|
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
boolean overwrite)
|
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize)
|
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize,
org.apache.hadoop.util.Progressable progress)
|
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize)
|
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress)
|
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress)
|
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
org.apache.hadoop.util.Progressable progress)
|
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
short replication)
|
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
short replication,
org.apache.hadoop.util.Progressable progress)
|
boolean |
createNewFile(org.apache.hadoop.fs.Path f)
|
boolean |
delete(org.apache.hadoop.fs.Path f)
|
boolean |
delete(org.apache.hadoop.fs.Path f,
boolean recursive)
|
boolean |
exists(org.apache.hadoop.fs.Path f)
|
static org.apache.hadoop.fs.FileSystem |
getAndWrap(org.apache.hadoop.conf.Configuration conf)
|
long |
getBlockSize(org.apache.hadoop.fs.Path f)
|
org.apache.hadoop.conf.Configuration |
getConf()
|
org.apache.hadoop.fs.ContentSummary |
getContentSummary(org.apache.hadoop.fs.Path f)
|
long |
getDefaultBlockSize()
|
short |
getDefaultReplication()
|
org.apache.hadoop.fs.BlockLocation[] |
getFileBlockLocations(org.apache.hadoop.fs.FileStatus file,
long start,
long len)
|
org.apache.hadoop.fs.FileChecksum |
getFileChecksum(org.apache.hadoop.fs.Path f)
|
org.apache.hadoop.fs.FileStatus |
getFileStatus(org.apache.hadoop.fs.Path f)
|
org.apache.hadoop.fs.Path |
getHomeDirectory()
|
long |
getLength(org.apache.hadoop.fs.Path f)
|
short |
getReplication(org.apache.hadoop.fs.Path src)
|
URI |
getUri()
|
long |
getUsed()
|
org.apache.hadoop.fs.Path |
getWorkingDirectory()
|
org.apache.hadoop.fs.FileStatus[] |
globStatus(org.apache.hadoop.fs.Path pathPattern)
|
org.apache.hadoop.fs.FileStatus[] |
globStatus(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.fs.PathFilter filter)
|
void |
initialize(URI name,
org.apache.hadoop.conf.Configuration conf)
|
boolean |
isDirectory(org.apache.hadoop.fs.Path f)
|
boolean |
isFile(org.apache.hadoop.fs.Path f)
|
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path f)
|
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path[] files)
|
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path[] files,
org.apache.hadoop.fs.PathFilter filter)
|
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.PathFilter filter)
|
boolean |
mkdirs(org.apache.hadoop.fs.Path f)
|
boolean |
mkdirs(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission)
|
void |
moveFromLocalFile(org.apache.hadoop.fs.Path[] srcs,
org.apache.hadoop.fs.Path dst)
|
void |
moveFromLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
|
void |
moveToLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
|
org.apache.hadoop.fs.FSDataInputStream |
open(org.apache.hadoop.fs.Path f)
|
org.apache.hadoop.fs.FSDataInputStream |
open(org.apache.hadoop.fs.Path f,
int bufferSize)
|
boolean |
rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
void |
setOwner(org.apache.hadoop.fs.Path p,
String username,
String groupname)
|
void |
setPermission(org.apache.hadoop.fs.Path p,
org.apache.hadoop.fs.permission.FsPermission permission)
|
boolean |
setReplication(org.apache.hadoop.fs.Path src,
short replication)
|
void |
setTimes(org.apache.hadoop.fs.Path p,
long mtime,
long atime)
|
void |
setVerifyChecksum(boolean verifyChecksum)
|
void |
setWorkingDirectory(org.apache.hadoop.fs.Path new_dir)
|
org.apache.hadoop.fs.Path |
startLocalOutput(org.apache.hadoop.fs.Path fsOutputFile,
org.apache.hadoop.fs.Path tmpLocalFile)
|
static org.apache.hadoop.fs.FileSystem |
wrap(org.apache.hadoop.fs.FileSystem fileSystem)
|
| Methods inherited from class org.apache.hadoop.fs.FileSystem |
checkPath, clearStatistics, closeAll, create, deleteOnExit, get, get, getAllStatistics, getDefaultUri, getLocal, getName, getNamed, getStatistics, getStatistics, makeQualified, mkdirs, printStatistics, processDeleteOnExit, setDefaultUri, setDefaultUri |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- Specified by:
setConf in interface org.apache.hadoop.conf.Configurable- Overrides:
setConf in class org.apache.hadoop.conf.Configured
getConf
public org.apache.hadoop.conf.Configuration getConf()
- Specified by:
getConf in interface org.apache.hadoop.conf.Configurable- Overrides:
getConf in class org.apache.hadoop.conf.Configured
getFileBlockLocations
public org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.FileStatus file,
long start,
long len)
throws IOException
- Overrides:
getFileBlockLocations in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
open
public org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
open in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
create
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
create in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
create
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f,
boolean overwrite)
throws IOException
- Overrides:
create in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
create
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f,
org.apache.hadoop.util.Progressable progress)
throws IOException
- Overrides:
create in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
create
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f,
short replication)
throws IOException
- Overrides:
create in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
create
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f,
short replication,
org.apache.hadoop.util.Progressable progress)
throws IOException
- Overrides:
create in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
create
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize)
throws IOException
- Overrides:
create in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
create
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize,
org.apache.hadoop.util.Progressable progress)
throws IOException
- Overrides:
create in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
create
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize)
throws IOException
- Overrides:
create in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
create
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress)
throws IOException
- Overrides:
create in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
createNewFile
public boolean createNewFile(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
createNewFile in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
append
public org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
append in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
append
public org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path f,
int bufferSize)
throws IOException
- Overrides:
append in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
getReplication
public short getReplication(org.apache.hadoop.fs.Path src)
throws IOException
- Overrides:
getReplication in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
setReplication
public boolean setReplication(org.apache.hadoop.fs.Path src,
short replication)
throws IOException
- Overrides:
setReplication in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
exists
public boolean exists(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
exists in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
isDirectory
public boolean isDirectory(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
isDirectory in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
isFile
public boolean isFile(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
isFile in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
getLength
public long getLength(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
getLength in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
getContentSummary
public org.apache.hadoop.fs.ContentSummary getContentSummary(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
getContentSummary in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
listStatus
public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.PathFilter filter)
throws IOException
- Overrides:
listStatus in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
listStatus
public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path[] files)
throws IOException
- Overrides:
listStatus in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
listStatus
public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path[] files,
org.apache.hadoop.fs.PathFilter filter)
throws IOException
- Overrides:
listStatus in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
globStatus
public org.apache.hadoop.fs.FileStatus[] globStatus(org.apache.hadoop.fs.Path pathPattern)
throws IOException
- Overrides:
globStatus in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
globStatus
public org.apache.hadoop.fs.FileStatus[] globStatus(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.fs.PathFilter filter)
throws IOException
- Overrides:
globStatus in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
getHomeDirectory
public org.apache.hadoop.fs.Path getHomeDirectory()
- Overrides:
getHomeDirectory in class org.apache.hadoop.fs.FileSystem
mkdirs
public boolean mkdirs(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
mkdirs in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
copyFromLocalFile
public void copyFromLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
- Overrides:
copyFromLocalFile in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
moveFromLocalFile
public void moveFromLocalFile(org.apache.hadoop.fs.Path[] srcs,
org.apache.hadoop.fs.Path dst)
throws IOException
- Overrides:
moveFromLocalFile in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
moveFromLocalFile
public void moveFromLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
- Overrides:
moveFromLocalFile in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
copyFromLocalFile
public void copyFromLocalFile(boolean delSrc,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
- Overrides:
copyFromLocalFile in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
copyFromLocalFile
public void copyFromLocalFile(boolean delSrc,
boolean overwrite,
org.apache.hadoop.fs.Path[] srcs,
org.apache.hadoop.fs.Path dst)
throws IOException
- Overrides:
copyFromLocalFile in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
copyFromLocalFile
public void copyFromLocalFile(boolean delSrc,
boolean overwrite,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
- Overrides:
copyFromLocalFile in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
copyToLocalFile
public void copyToLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
- Overrides:
copyToLocalFile in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
moveToLocalFile
public void moveToLocalFile(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
- Overrides:
moveToLocalFile in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
copyToLocalFile
public void copyToLocalFile(boolean delSrc,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
- Overrides:
copyToLocalFile in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
startLocalOutput
public org.apache.hadoop.fs.Path startLocalOutput(org.apache.hadoop.fs.Path fsOutputFile,
org.apache.hadoop.fs.Path tmpLocalFile)
throws IOException
- Overrides:
startLocalOutput in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
completeLocalOutput
public void completeLocalOutput(org.apache.hadoop.fs.Path fsOutputFile,
org.apache.hadoop.fs.Path tmpLocalFile)
throws IOException
- Overrides:
completeLocalOutput in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
getUsed
public long getUsed()
throws IOException
- Overrides:
getUsed in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
getBlockSize
public long getBlockSize(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
getBlockSize in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
getDefaultBlockSize
public long getDefaultBlockSize()
- Overrides:
getDefaultBlockSize in class org.apache.hadoop.fs.FileSystem
getDefaultReplication
public short getDefaultReplication()
- Overrides:
getDefaultReplication in class org.apache.hadoop.fs.FileSystem
getFileChecksum
public org.apache.hadoop.fs.FileChecksum getFileChecksum(org.apache.hadoop.fs.Path f)
throws IOException
- Overrides:
getFileChecksum in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
setVerifyChecksum
public void setVerifyChecksum(boolean verifyChecksum)
- Overrides:
setVerifyChecksum in class org.apache.hadoop.fs.FileSystem
setPermission
public void setPermission(org.apache.hadoop.fs.Path p,
org.apache.hadoop.fs.permission.FsPermission permission)
throws IOException
- Overrides:
setPermission in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
setOwner
public void setOwner(org.apache.hadoop.fs.Path p,
String username,
String groupname)
throws IOException
- Overrides:
setOwner in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
setTimes
public void setTimes(org.apache.hadoop.fs.Path p,
long mtime,
long atime)
throws IOException
- Overrides:
setTimes in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
getUri
public URI getUri()
- Specified by:
getUri in class org.apache.hadoop.fs.FileSystem
open
public org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path f,
int bufferSize)
throws IOException
- Specified by:
open in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
create
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress)
throws IOException
- Specified by:
create in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
initialize
public void initialize(URI name,
org.apache.hadoop.conf.Configuration conf)
throws IOException
- Overrides:
initialize in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
append
public org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path f,
int bufferSize,
org.apache.hadoop.util.Progressable progress)
throws IOException
- Specified by:
append in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
rename
public boolean rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
- Specified by:
rename in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
delete
public boolean delete(org.apache.hadoop.fs.Path f)
throws IOException
- Specified by:
delete in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
delete
public boolean delete(org.apache.hadoop.fs.Path f,
boolean recursive)
throws IOException
- Specified by:
delete in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
listStatus
public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path f)
throws IOException
- Specified by:
listStatus in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
setWorkingDirectory
public void setWorkingDirectory(org.apache.hadoop.fs.Path new_dir)
- Specified by:
setWorkingDirectory in class org.apache.hadoop.fs.FileSystem
getWorkingDirectory
public org.apache.hadoop.fs.Path getWorkingDirectory()
- Specified by:
getWorkingDirectory in class org.apache.hadoop.fs.FileSystem
mkdirs
public boolean mkdirs(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission)
throws IOException
- Specified by:
mkdirs in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
getFileStatus
public org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path f)
throws IOException
- Specified by:
getFileStatus in class org.apache.hadoop.fs.FileSystem
- Throws:
IOException
wrap
public static org.apache.hadoop.fs.FileSystem wrap(org.apache.hadoop.fs.FileSystem fileSystem)
getAndWrap
public static org.apache.hadoop.fs.FileSystem getAndWrap(org.apache.hadoop.conf.Configuration conf)
throws IOException
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.