@ThreadSafe public final class UIFileBlockInfo extends Object
Constructor and Description |
---|
UIFileBlockInfo(FileBlockInfo fileBlockInfo,
AlluxioConfiguration alluxioConfiguration)
Creates a new instance of
UIFileBlockInfo . |
UIFileBlockInfo(long blockId,
long blockLength,
long blockLastAccessTimeMs,
String tierAlias,
AlluxioConfiguration alluxioConfiguration)
Creates a new instance of
UIFileBlockInfo . |
Modifier and Type | Method and Description |
---|---|
long |
getBlockLength()
Gets block length.
|
long |
getID()
Gets id.
|
long |
getLastAccessTimeMs()
Gets last access time ms.
|
List<String> |
getLocations()
Gets locations.
|
boolean |
isInTier(String tierAlias)
Is in tier boolean.
|
public UIFileBlockInfo(FileBlockInfo fileBlockInfo, AlluxioConfiguration alluxioConfiguration)
UIFileBlockInfo
.fileBlockInfo
- underlying FileBlockInfo
alluxioConfiguration
- the alluxio configurationpublic UIFileBlockInfo(long blockId, long blockLength, long blockLastAccessTimeMs, String tierAlias, AlluxioConfiguration alluxioConfiguration)
UIFileBlockInfo
.blockId
- the block idblockLength
- the block lengthblockLastAccessTimeMs
- the block last access time in millisecondstierAlias
- the tier alias of the blockalluxioConfiguration
- the alluxio configurationpublic boolean isInTier(String tierAlias)
tierAlias
- the alias for the tierpublic long getBlockLength()
public long getID()
public long getLastAccessTimeMs()
Copyright © 2023. All Rights Reserved.