@NotThreadSafe public final class FileInfo extends Object implements Serializable
Constructor and Description |
---|
FileInfo()
Creates a new instance of
FileInfo . |
public FileInfo()
FileInfo
.public long getFileId()
public String getName()
public String getPath()
public String getUfsPath()
public long getLength()
public long getBlockSizeBytes()
public long getCreationTimeMs()
public boolean isCompleted()
public boolean isFolder()
public boolean isPinned()
public boolean isCacheable()
public boolean isPersisted()
public int getInMemoryPercentage()
public int getInAlluxioPercentage()
public long getLastModificationTimeMs()
public long getLastAccessTimeMs()
public long getTtl()
public String getOwner()
public String getGroup()
public int getMode()
public String getPersistenceState()
public boolean isMountPoint()
public List<FileBlockInfo> getFileBlockInfos()
public FileBlockInfo getFileBlockInfo(long blockId)
blockId
- the block IDpublic int getReplicationMax()
public int getReplicationMin()
public long getMountId()
public String getUfsFingerprint()
public AccessControlList getAcl()
public DefaultAccessControlList getDefaultAcl()
public List<String> convertAclToStringEntries()
public List<String> convertDefaultAclToStringEntries()
public FileInfo setFileId(long fileId)
fileId
- the file id to usepublic FileInfo setName(String name)
name
- the file name to usepublic FileInfo setPath(String path)
path
- the file path to usepublic FileInfo setUfsPath(String ufsPath)
ufsPath
- the file UFS path to usepublic FileInfo setLength(long length)
length
- the file length to usepublic FileInfo setBlockSizeBytes(long blockSizeBytes)
blockSizeBytes
- the file block size (in bytes) to usepublic FileInfo setCreationTimeMs(long creationTimeMs)
creationTimeMs
- the file creation time (in milliseconds) to usepublic FileInfo setCompleted(boolean completed)
completed
- the completed flag value to usepublic FileInfo setFolder(boolean folder)
folder
- the folder flag value to usepublic FileInfo setPinned(boolean pinned)
pinned
- the pinned flag value to usepublic FileInfo setCacheable(boolean cacheable)
cacheable
- the cacheable flag value to usepublic FileInfo setPersisted(boolean persisted)
persisted
- the persisted flag value to usepublic FileInfo setBlockIds(List<Long> blockIds)
blockIds
- the file block ids to usepublic FileInfo setInMemoryPercentage(int inMemoryPercentage)
inMemoryPercentage
- the file in memory percentage to usepublic FileInfo setInAlluxioPercentage(int inAlluxioPercentage)
inAlluxioPercentage
- the file in alluxio percentage to usepublic FileInfo setLastModificationTimeMs(long lastModificationTimeMs)
lastModificationTimeMs
- the last modification time (in milliseconds) to usepublic FileInfo setLastAccessTimeMs(long lastAccessTimeMs)
lastAccessTimeMs
- the last access time (in milliseconds) to usepublic FileInfo setTtl(long ttl)
ttl
- the file time-to-live (in seconds) to usepublic FileInfo setTtlAction(TtlAction ttlAction)
ttlAction
- the TtlAction
to usepublic FileInfo setOwner(String owner)
owner
- the file ownerpublic FileInfo setGroup(String group)
group
- the file grouppublic FileInfo setMode(int mode)
mode
- the file mode bitspublic FileInfo setPersistenceState(String persistenceState)
persistenceState
- the file persistence state to usepublic FileInfo setMountPoint(boolean mountPoint)
mountPoint
- the mount point flag value to usepublic FileInfo setFileBlockInfos(List<FileBlockInfo> fileBlockInfos)
fileBlockInfos
- the file block descriptors to usepublic FileInfo setReplicationMax(int replicationMax)
replicationMax
- the maximum number of block replicationpublic FileInfo setReplicationMin(int replicationMin)
replicationMin
- the minimum number of block replicationpublic FileInfo setMountId(long mountId)
mountId
- the id of mountpublic FileInfo setUfsFingerprint(String ufsFingerprint)
ufsFingerprint
- the ufs fingerprint to usepublic FileInfo setAcl(AccessControlList acl)
acl
- the ACL entries to usepublic FileInfo setDefaultAcl(DefaultAccessControlList defaultAcl)
defaultAcl
- the ACL entries to usepublic FileInfo setMediumTypes(Set<String> mediumTypes)
mediumTypes
- the pinned locationspublic FileInfo setXAttr(Map<String,byte[]> xAttr)
xAttr
- the extended attributes to useFileInfo
public FileInfo setUfsType(String ufsType)
ufsType
- the ufs nameFileInfo
public FileInfo setContentHash(String contentHash)
contentHash
- the content hashFileInfo
Copyright © 2023. All Rights Reserved.