Interface GeolocationResolver

  • All Known Implementing Classes:
    DefaultGeolocationResolver

    public interface GeolocationResolver
    Interface to resolve the address string of nodes.
    Author:
    mvrueden
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Coordinates resolve​(java.lang.String addressString)
      Resolves the given addressString.
      java.util.Map<java.lang.Integer,​Coordinates> resolve​(java.util.Collection<java.lang.Integer> nodeIds)
      Resolve the address string to coordinates for all nodes in nodeIds.
      java.util.Map<java.lang.Integer,​Coordinates> resolve​(java.util.Map<java.lang.Integer,​java.lang.String> nodeIdAddressMap)
      Resolves each entry's address to its coordinate.
    • Method Detail

      • resolve

        java.util.Map<java.lang.Integer,​Coordinates> resolve​(java.util.Collection<java.lang.Integer> nodeIds)
        Resolve the address string to coordinates for all nodes in nodeIds.
        Parameters:
        nodeIds - The ids to resolve the address string to coordinates.
        Returns:
        A Map (nodeId -> Coordinate) for all nodes in nodeIds which have a address defined.
      • resolve

        java.util.Map<java.lang.Integer,​Coordinates> resolve​(java.util.Map<java.lang.Integer,​java.lang.String> nodeIdAddressMap)
        Resolves each entry's address to its coordinate.
        Parameters:
        nodeIdAddressMap - Key: nodeId, Value: Address
        Returns:
        A Map (nodeId -> Coordinates) for all nodes which id matches the keys of the map and have an address defined and
      • resolve

        Coordinates resolve​(java.lang.String addressString)
        Resolves the given addressString.
        Parameters:
        addressString - The address to resolve to coordinates.
        Returns:
        The resolved coordinates.