Package com.graphhopper.reader.osm
Class WayToEdgesMap
java.lang.Object
com.graphhopper.reader.osm.WayToEdgesMap
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterator<com.carrotsearch.hppc.cursors.IntCursor>
getEdges
(long way) void
putIfReserved
(long way, int edge) void
reserve
(long way) We need to reserve a way before we can put the associated edges into the map.
-
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
-