@ThreadSafe public final class UIFileInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UIFileInfo.LocalFileInfo
The type Local file info.
|
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,
AlluxioConfiguration alluxioConfiguration,
List<String> orderedTierAliases)
Creates a new instance of
UIFileInfo . |
UIFileInfo(UIFileInfo.LocalFileInfo fileInfo,
AlluxioConfiguration alluxioConfiguration,
List<String> orderedTierAliases)
Creates a new instance of
UIFileInfo . |
UIFileInfo(URIStatus status,
AlluxioConfiguration alluxioConfiguration,
List<String> orderedTierAliases)
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()
Gets absolute path.
|
List<Long> |
getBlockIds()
Gets BlockId List.
|
String |
getBlockSizeBytes()
Gets block size bytes.
|
Map<String,List<UIFileBlockInfo>> |
getBlocksOnTier()
Gets blocks on tier.
|
String |
getCreationTime()
Gets creation time.
|
List<String> |
getFileLocations()
Gets file locations.
|
String |
getGroup()
Gets group.
|
long |
getId()
Gets id.
|
boolean |
getInAlluxio()
Gets in alluxio.
|
int |
getInAlluxioPercentage()
Gets in alluxio percentage.
|
boolean |
getIsDirectory()
Gets is directory.
|
String |
getMode()
Gets mode.
|
String |
getModificationTime()
Gets modification time.
|
String |
getName()
Gets name.
|
Map<String,Integer> |
getOnTierPercentages()
Gets on-tier percentages.
|
String |
getOwner()
Gets owner.
|
String |
getPersistenceState()
Gets persistence state.
|
String |
getSize()
Gets size.
|
boolean |
isPinned()
Is pinned boolean.
|
void |
setFileLocations(List<String> fileLocations)
Sets file locations.
|
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, AlluxioConfiguration alluxioConfiguration, List<String> orderedTierAliases)
UIFileInfo
.status
- underlying URIStatus
alluxioConfiguration
- the alluxio configurationorderedTierAliases
- the ordered tier aliasespublic UIFileInfo(FileInfo info, AlluxioConfiguration alluxioConfiguration, List<String> orderedTierAliases)
UIFileInfo
.info
- underlying FileInfo
alluxioConfiguration
- the alluxio configurationorderedTierAliases
- the ordered tier aliasespublic UIFileInfo(UIFileInfo.LocalFileInfo fileInfo, AlluxioConfiguration alluxioConfiguration, List<String> orderedTierAliases)
UIFileInfo
.fileInfo
- underlying UIFileInfo.LocalFileInfo
alluxioConfiguration
- the alluxio configurationorderedTierAliases
- the ordered tier aliasespublic 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 List<String> getFileLocations()
public long getId()
public boolean getInAlluxio()
public int getInAlluxioPercentage()
public boolean getIsDirectory()
public boolean isPinned()
public String getPersistenceState()
PersistenceState
of the filepublic Map<String,Integer> getOnTierPercentages()
public 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.