public class InodeFile extends Inode implements InodeFileView
Constructor and Description |
---|
InodeFile(InodeFileView delegate) |
Modifier and Type | Method and Description |
---|---|
long |
getBlockContainerId() |
long |
getBlockIdByIndex(int blockIndex)
Gets the block id for a given index.
|
List<Long> |
getBlockIds() |
long |
getBlockSizeBytes() |
long |
getLength() |
long |
getPersistJobId() |
int |
getReplicationDurable() |
int |
getReplicationMax() |
int |
getReplicationMin() |
long |
getShouldPersistTime() |
String |
getTempUfsPath() |
boolean |
isCacheable() |
boolean |
isCompleted() |
asDirectory, asFile, checkPermission, equals, generateClientFileInfo, getACL, getCreationTimeMs, getDefaultACL, getGroup, getId, getLastAccessTimeMs, getLastModificationTimeMs, getMediumTypes, getMode, getName, getOwner, getParentId, getPermission, getPersistenceState, getTtl, getTtlAction, getUfsFingerprint, getXAttr, hashCode, isDeleted, isDirectory, isFile, isPersisted, isPinned, toJournalEntry, toProto, wrap
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
checkPermission, compareTo, generateClientFileInfo, getACL, getCreationTimeMs, getDefaultACL, getGroup, getId, getLastAccessTimeMs, getLastModificationTimeMs, getMediumTypes, getMode, getName, getOwner, getParentId, getPermission, getPersistenceState, getTtl, getTtlAction, getUfsFingerprint, getXAttr, isDeleted, isDirectory, isFile, isPersisted, isPinned, toProto
toJournalEntry
public InodeFile(InodeFileView delegate)
delegate
- the inode to delegate topublic long getPersistJobId()
getPersistJobId
in interface InodeFileView
public long getShouldPersistTime()
getShouldPersistTime
in interface InodeFileView
public int getReplicationDurable()
getReplicationDurable
in interface InodeFileView
public int getReplicationMax()
getReplicationMax
in interface InodeFileView
public int getReplicationMin()
getReplicationMin
in interface InodeFileView
public String getTempUfsPath()
getTempUfsPath
in interface InodeFileView
public List<Long> getBlockIds()
getBlockIds
in interface InodeFileView
public long getBlockSizeBytes()
getBlockSizeBytes
in interface InodeFileView
public long getLength()
getLength
in interface InodeFileView
public long getBlockContainerId()
getBlockContainerId
in interface InodeFileView
public long getBlockIdByIndex(int blockIndex) throws BlockInfoException
InodeFileView
getBlockIdByIndex
in interface InodeFileView
blockIndex
- the index to get the block id forBlockInfoException
- if the index of the block is out of rangepublic boolean isCacheable()
isCacheable
in interface InodeFileView
public boolean isCompleted()
isCompleted
in interface InodeFileView
Copyright © 2023. All Rights Reserved.