tachyon
Class UnderFileSystemSingleLocal

java.lang.Object
  extended by tachyon.UnderFileSystem
      extended by 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.


Constructor Summary
UnderFileSystemSingleLocal()
           
 
Method Summary
 void close()
           
 OutputStream create(String path)
           
 boolean delete(String path, boolean recursive)
           
 boolean exists(String path)
           
static UnderFileSystem getClient()
           
 List<String> getFileLocations(String path)
           
 long getFileSize(String path)
           
 boolean mkdirs(String path, boolean createParent)
           
 InputStream open(String path)
           
 boolean rename(String src, String dst)
           
 
Methods inherited from class tachyon.UnderFileSystem
getUnderFileSystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnderFileSystemSingleLocal

public UnderFileSystemSingleLocal()
Method Detail

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.