|Modifier and Type||Method and Description|
Locality comparison for wire type locality tiers, two locality tiers matches if both name and values are equal, or for the "node" tier, if the node names resolve to the same IP address.
public static boolean matches(TieredIdentity.LocalityTier tier, TieredIdentity.LocalityTier otherTier, boolean resolveIpAddress)
tier- a wire type locality tier
otherTier- a wire type locality tier to compare to
resolveIpAddress- whether or not to resolve hostnames to IP addresses for node locality
public static Optional<TieredIdentity> nearest(TieredIdentity tieredIdentity, List<TieredIdentity> identities, AlluxioConfiguration conf)
tieredIdentity- the tiered identity
identities- the tiered identities to compare to
conf- Alluxio configuration
Copyright © 2022. All Rights Reserved.