OrderedResolver (Apache Hadoop HDFS-RBF 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.federation.resolver.order, interface: OrderedResolver

Package org.apache.hadoop.hdfs.server.federation.resolver.order

# Interface OrderedResolver

All Known Implementing Classes:
  `AvailableSpaceResolver`, `HashFirstResolver`, `HashResolver`, `LeaderFollowerResolver`, `LocalResolver`, `RandomResolver`, `RouterResolver`

public interface OrderedResolver
Policy that decides which should be the first location accessed given multiple destinations.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getFirstNamespace(String path, PathLocation loc)`
  Get the first namespace based on this resolver approach.

- ## Method Details

  - ### getFirstNamespace

    String getFirstNamespace(String path, PathLocation loc)
    Get the first namespace based on this resolver approach.
    Parameters:
      `path` - Path to check.
      `loc` - Federated location with multiple destinations.
    Returns:
      First namespace out of the locations.