@PublicApi @ThreadSafe public class URIStatus extends Object
FileInfo
. Represents the metadata about a file or directory in Alluxio.
This is a snapshot of information about the file or directory and not all attributes are
guaranteed to be up to date. Attributes documented as immutable will always be accurate, and
attributes documented as mutable may be out of date.Constructor and Description |
---|
URIStatus(FileInfo info)
Constructs an instance of this class from a
FileInfo . |
URIStatus(FileInfo info,
CacheContext context)
Constructs an instance of this class from a
FileInfo . |
public URIStatus(FileInfo info)
FileInfo
.info
- an object containing the information about a particular uripublic URIStatus(FileInfo info, @Nullable CacheContext context)
FileInfo
.info
- an object containing the information about a particular uricontext
- cache context associated with this uripublic AccessControlList getAcl()
public DefaultAccessControlList getDefaultAcl()
@Nullable public BlockInfo getBlockInfo(long blockId)
blockId
- the block IDpublic List<Long> getBlockIds()
public long getBlockSizeBytes()
public long getCreationTimeMs()
public long getFileId()
public String getGroup()
public int getInMemoryPercentage()
public int getInAlluxioPercentage()
public long getLastModificationTimeMs()
public long getLastAccessTimeMs()
public long getLength()
public String getName()
public String getPath()
public int getMode()
public String getPersistenceState()
public long getTtl()
public TtlAction getTtlAction()
public String getUfsPath()
public String getOwner()
public int getReplicationMax()
public int getReplicationMin()
public boolean isCacheable()
public boolean isCompleted()
public boolean isFolder()
public boolean isPersisted()
public boolean isPinned()
public boolean isMountPoint()
public long getMountId()
public List<FileBlockInfo> getFileBlockInfos()
public String getUfsFingerprint()
@Nullable public CacheContext getCacheContext()
public FileInfo getFileInfo()
FileInfo
object does not have a stable API.
Make modifications to the returned file info object at your own risk.Copyright © 2023. All Rights Reserved.