tachyon
Class UnderFileSystem
java.lang.Object
tachyon.UnderFileSystem
- Direct Known Subclasses:
- UnderFileSystemHdfs, UnderFileSystemSingleLocal
public abstract class UnderFileSystem
- extends Object
Tachyon stores data into an under layer file system. Any file system implementing
this interface can be a valid under layer file system
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnderFileSystem
public UnderFileSystem()
getUnderFileSystem
public static UnderFileSystem getUnderFileSystem(String path)
close
public abstract void close()
throws IOException
- Throws:
IOException
create
public abstract OutputStream create(String path)
throws IOException
- Throws:
IOException
delete
public abstract boolean delete(String path,
boolean recursive)
throws IOException
- Throws:
IOException
exists
public abstract boolean exists(String path)
throws IOException
- Throws:
IOException
getFileLocations
public abstract List<String> getFileLocations(String path)
throws IOException
- Throws:
IOException
getFileSize
public abstract long getFileSize(String path)
throws IOException
- Throws:
IOException
mkdirs
public abstract boolean mkdirs(String path,
boolean createParent)
throws IOException
- Throws:
IOException
open
public abstract InputStream open(String path)
throws IOException
- Throws:
IOException
rename
public abstract boolean rename(String src,
String dst)
throws IOException
- Throws:
IOException
Copyright © 2013. All Rights Reserved.