@ThreadSafe public final class BlockStoreLocation extends Object
Constructor and Description |
---|
BlockStoreLocation(String tierAlias,
int dirIndex)
Creates a new instance of
BlockStoreLocation . |
Modifier and Type | Method and Description |
---|---|
static BlockStoreLocation |
anyDirInTier(String tierAlias)
Convenience method to return the block store location representing any dir in the tier.
|
static BlockStoreLocation |
anyTier()
Convenience method to return the block store location representing any dir in any tier.
|
boolean |
belongsTo(BlockStoreLocation location)
Returns whether this location belongs to the specific location.
|
int |
dir()
Gets the directory index of the location.
|
boolean |
equals(Object o)
Compares to a specific object.
|
int |
hashCode() |
String |
tierAlias()
Gets the storage tier alias of the location.
|
String |
toString()
Converts the location to a human readable form.
|
public BlockStoreLocation(String tierAlias, int dirIndex)
BlockStoreLocation
.tierAlias
- the tier alias to usedirIndex
- the directory index to usepublic static BlockStoreLocation anyTier()
public static BlockStoreLocation anyDirInTier(String tierAlias)
tierAlias
- The alias of the tier this returned block store location will representpublic String tierAlias()
public int dir()
ANY_DIR
for any directorypublic boolean belongsTo(BlockStoreLocation location)
location
- the target BlockStoreLocationpublic String toString()
public boolean equals(Object o)
equals
in class Object
o
- the object to compareBlockStoreLocation
and represents the same tier and dirCopyright © 2023. All Rights Reserved.