locateData
public NodeInfo locateData(Metadata metadata)
throws HashException,
PartitionException
Determines where a file belongs in the system based on its
properties. This function could implement a simple hash-based
partitioning scheme, something more dynamic, utilize the feature graph,
etc.
Ultimately, this function will determine the DHT hierarchy.
- Specified by:
locateData
in class Partitioner<Metadata>
- Parameters:
metadata
- data to find the location in the network for.
- Throws:
HashException
PartitionException