tachyon.client
Class TachyonFile
java.lang.Object
tachyon.client.TachyonFile
public class TachyonFile
- extends Object
Tachyon File.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TachyonFile
public TachyonFile(TachyonClient tachyonClient,
ClientFileInfo fileInfo)
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.