tachyon
Class InodeFile
java.lang.Object
tachyon.Inode
tachyon.InodeFile
- All Implemented Interfaces:
- Comparable<Inode>
public class InodeFile
- extends Inode
Tachyon file system's file representation in master.
Fields inherited from class tachyon.Inode |
TYPE |
Methods inherited from class tachyon.Inode |
compareTo, equals, getCreationTimeMs, getId, getInodeType, getName, getParentId, hashCode, isDirectory, isFile, reverseId, setName, setParentId |
UNINITIAL_VALUE
public static final long UNINITIAL_VALUE
- See Also:
- Constant Field Values
InodeFile
public InodeFile(String name,
int id,
int parentId)
getLength
public long getLength()
setLength
public void setLength(long length)
throws SuspectedFileSizeException
- Throws:
SuspectedFileSizeException
isReady
public boolean isReady()
toString
public String toString()
- Overrides:
toString
in class Inode
setCheckpointPath
public void setCheckpointPath(String checkpointPath)
getCheckpointPath
public String getCheckpointPath()
addLocation
public void addLocation(long workerId,
NetAddress workerAddress)
removeLocation
public void removeLocation(long workerId)
getLocations
public List<NetAddress> getLocations()
throws IOException
- Throws:
IOException
isInMemory
public boolean isInMemory()
setPin
public void setPin(boolean pin)
isPin
public boolean isPin()
setCache
public void setCache(boolean cache)
isCache
public boolean isCache()
hasCheckpointed
public boolean hasCheckpointed()
Copyright © 2013. All Rights Reserved.