@ThreadSafe public final class UIFileInfo extends Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.Ordering<UIFileInfo> |
PATH_STRING_COMPARE
Provides ordering of
UIFileInfo based off a string comparison of the
absolute paths. |
Constructor and Description |
---|
UIFileInfo(FileInfo info)
Creates a new instance of
UIFileInfo . |
UIFileInfo(alluxio.web.UIFileInfo.LocalFileInfo fileInfo)
Creates a new instance of
UIFileInfo . |
UIFileInfo(URIStatus status)
Creates a new instance of
UIFileInfo . |
Modifier and Type | Method and Description |
---|---|
void |
addBlock(String tierAlias,
long blockId,
long blockSize,
long blockLastAccessTimeMs)
Adds a block to the file information.
|
String |
getAbsolutePath() |
String |
getBlockSizeBytes() |
Map<String,List<UIFileBlockInfo>> |
getBlocksOnTier() |
String |
getCreationTime() |
List<String> |
getFileLocations() |
String |
getGroup() |
long |
getId() |
boolean |
getInAlluxio() |
int |
getInAlluxioPercentage() |
boolean |
getIsDirectory() |
String |
getMode() |
String |
getModificationTime() |
String |
getName() |
int |
getOnTierPercentage(String tierAlias) |
String |
getOwner() |
String |
getPersistenceState() |
String |
getSize() |
boolean |
isPinned() |
void |
setFileLocations(List<String> fileLocations) |
public static final com.google.common.collect.Ordering<UIFileInfo> PATH_STRING_COMPARE
UIFileInfo
based off a string comparison of the
absolute paths.public UIFileInfo(URIStatus status)
UIFileInfo
.status
- underlying URIStatus
public UIFileInfo(FileInfo info)
UIFileInfo
.info
- underlying FileInfo
public UIFileInfo(alluxio.web.UIFileInfo.LocalFileInfo fileInfo)
UIFileInfo
.fileInfo
- underlying UIFileInfo.LocalFileInfo
public void addBlock(String tierAlias, long blockId, long blockSize, long blockLastAccessTimeMs)
tierAlias
- the tier aliasblockId
- the block idblockSize
- the block sizeblockLastAccessTimeMs
- the last access time (in milliseconds)public String getAbsolutePath()
public String getBlockSizeBytes()
public Map<String,List<UIFileBlockInfo>> getBlocksOnTier()
public String getCreationTime()
public String getModificationTime()
public long getId()
public boolean getInAlluxio()
public int getInAlluxioPercentage()
public boolean getIsDirectory()
public boolean isPinned()
public String getPersistenceState()
PersistenceState
of the filepublic int getOnTierPercentage(String tierAlias)
tierAlias
- a tier aliaspublic String getName()
public String getSize()
public void setFileLocations(List<String> fileLocations)
fileLocations
- the file locations to usepublic String getOwner()
public String getGroup()
public String getMode()
Copyright © 2023. All Rights Reserved.