public class TachyonFile extends Object implements Comparable<TachyonFile>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TachyonFile o) |
boolean |
equals(Object obj) |
long |
getBlockId(int blockIndex) |
long |
getBlockSizeByte() |
long |
getCreationTimeMs() |
int |
getDiskReplication() |
InStream |
getInStream(ReadType readType) |
String |
getLocalFilename(int blockIndex)
Returns the local filename for the block if that file exists on the local file system.
|
List<String> |
getLocationHosts() |
int |
getNumberOfBlocks() |
OutStream |
getOutStream(WriteType writeType) |
String |
getPath() |
int |
hashCode() |
boolean |
isComplete() |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isInLocalMemory() |
boolean |
isInMemory() |
long |
length() |
boolean |
needPin() |
TachyonByteBuffer |
readByteBuffer() |
boolean |
recache() |
boolean |
rename(String path) |
String |
toString() |
public InStream getInStream(ReadType readType) throws IOException
IOExceptionpublic OutStream getOutStream(WriteType writeType) throws IOException
IOExceptionpublic String getPath()
public List<String> getLocationHosts() throws IOException
IOExceptionpublic boolean isFile()
public boolean isDirectory()
public boolean isInLocalMemory()
public boolean isInMemory()
public boolean isComplete()
public long length()
public int getNumberOfBlocks()
throws IOException
IOExceptionpublic long getBlockSizeByte()
public TachyonByteBuffer readByteBuffer() throws IOException
IOExceptionpublic String getLocalFilename(int blockIndex) throws IOException
blockId - The id of the block.IOExceptionpublic boolean recache()
throws IOException
IOExceptionpublic boolean rename(String path) throws IOException
IOExceptionpublic int compareTo(TachyonFile o)
compareTo in interface Comparable<TachyonFile>public long getBlockId(int blockIndex)
throws IOException
IOExceptionpublic boolean needPin()
public int getDiskReplication()
public long getCreationTimeMs()
Copyright © 2014. All Rights Reserved.