tachyon
Class UnderFileSystemSingleLocal
java.lang.Object
tachyon.UnderFileSystem
tachyon.UnderFileSystemSingleLocal
public class UnderFileSystemSingleLocal
- extends UnderFileSystem
Single node UnderFilesystem implementation.
This only works for single machine. It is for local unit test and single machine mode.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnderFileSystemSingleLocal
public UnderFileSystemSingleLocal()
getClient
public static UnderFileSystem getClient()
close
public void close()
throws IOException
- Specified by:
close
in class UnderFileSystem
- Throws:
IOException
create
public OutputStream create(String path)
throws IOException
- Specified by:
create
in class UnderFileSystem
- Throws:
IOException
delete
public boolean delete(String path,
boolean recursive)
throws IOException
- Specified by:
delete
in class UnderFileSystem
- Throws:
IOException
exists
public boolean exists(String path)
throws IOException
- Specified by:
exists
in class UnderFileSystem
- Throws:
IOException
getFileLocations
public List<String> getFileLocations(String path)
throws IOException
- Specified by:
getFileLocations
in class UnderFileSystem
- Throws:
IOException
getFileSize
public long getFileSize(String path)
throws IOException
- Specified by:
getFileSize
in class UnderFileSystem
- Throws:
IOException
mkdirs
public boolean mkdirs(String path,
boolean createParent)
throws IOException
- Specified by:
mkdirs
in class UnderFileSystem
- Throws:
IOException
open
public InputStream open(String path)
throws IOException
- Specified by:
open
in class UnderFileSystem
- Throws:
IOException
rename
public boolean rename(String src,
String dst)
throws IOException
- Specified by:
rename
in class UnderFileSystem
- Throws:
IOException
Copyright © 2013. All Rights Reserved.