@NotThreadSafe public final class DeterministicHashPolicy extends java.lang.Object implements BlockLocationPolicy
BlockLocationPolicy.Factory| Constructor and Description |
|---|
DeterministicHashPolicy(AlluxioConfiguration conf)
Constructs a new
DeterministicHashPolicy
needed for instantiation in BlockLocationPolicy.Factory. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.Optional<WorkerNetAddress> |
getWorker(GetWorkerOptions options)
Gets the worker's network address for serving operations requested for the block.
|
int |
hashCode() |
java.lang.String |
toString() |
public DeterministicHashPolicy(AlluxioConfiguration conf)
DeterministicHashPolicy
needed for instantiation in BlockLocationPolicy.Factory.conf - Alluxio configurationpublic java.util.Optional<WorkerNetAddress> getWorker(GetWorkerOptions options)
BlockLocationPolicygetWorker in interface BlockLocationPolicyoptions - the options to get a block worker network address for a blockpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2022. All Rights Reserved.