tachyon.client
Class TachyonFile

java.lang.Object
  extended by tachyon.client.TachyonFile

public class TachyonFile
extends Object

Tachyon File.


Constructor Summary
TachyonFile(TachyonClient tachyonClient, ClientFileInfo fileInfo)
           
 
Method Summary
 boolean addCheckpointPath(String path)
          This API is not recommended to use.
 InStream getInStream(OpType opType)
           
 List<String> getLocationHosts()
           
 OutStream getOutStream(OpType opType)
           
 String getPath()
           
 long getSize()
           
 boolean isInMemory()
           
 boolean isReady()
           
 long length()
           
 ByteBuffer readByteBuffer()
           
 boolean recacheData()
           
 void releaseFileLock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TachyonFile

public TachyonFile(TachyonClient tachyonClient,
                   ClientFileInfo fileInfo)
Method Detail

addCheckpointPath

public boolean addCheckpointPath(String path)
                          throws FileDoesNotExistException,
                                 SuspectedFileSizeException,
                                 org.apache.thrift.TException,
                                 IOException
This API is not recommended to use.

Parameters:
path - file's checkpoint path.
Returns:
true if the checkpoint path is added successfully, false otherwise.
Throws:
org.apache.thrift.TException
SuspectedFileSizeException
FileDoesNotExistException
IOException

getInStream

public InStream getInStream(OpType opType)
                     throws IOException
Throws:
IOException

getOutStream

public OutStream getOutStream(OpType opType)
                       throws IOException
Throws:
IOException

getPath

public String getPath()

getSize

public long getSize()

getLocationHosts

public List<String> getLocationHosts()
                              throws IOException
Throws:
IOException

length

public long length()

readByteBuffer

public ByteBuffer readByteBuffer()

recacheData

public boolean recacheData()

releaseFileLock

public void releaseFileLock()

isInMemory

public boolean isInMemory()

isReady

public boolean isReady()


Copyright © 2013. All Rights Reserved.