tachyon
Class UnderFileSystem

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


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

Constructor Detail

UnderFileSystem

public UnderFileSystem()
Method Detail

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.