Class WayToEdgesMap

java.lang.Object
com.graphhopper.reader.osm.WayToEdgesMap

public class WayToEdgesMap extends Object
This map can store multiple edges (int) for each way ID (long). All way-edge pairs with the same way must be inserted consecutively. This allows us to simply store all edges in an array along with a mapping between the ways and the position of the associated edges in this array.
  • Constructor Details

    • WayToEdgesMap

      public WayToEdgesMap()
  • Method Details

    • reserve

      public void reserve(long way)
      We need to reserve a way before we can put the associated edges into the map. This way we can define a set of keys/ways for which we shall add edges later.
    • putIfReserved

      public void putIfReserved(long way, int edge)
    • getEdges

      public Iterator<com.carrotsearch.hppc.cursors.IntCursor> getEdges(long way)