Package com.graphhopper.storage.index
Class LineIntIndex
java.lang.Object
com.graphhopper.storage.index.LineIntIndex
-
Constructor Summary
ConstructorsConstructorDescriptionLineIntIndex(BBox bBox, Directory dir, String name) LineIntIndex(BBox bBox, Directory dir, String name, DAType daType) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidfindEdgeIdsInNeighborhood(double queryLat, double queryLon, int iteration, IntConsumer foundEntries) This method collects edge ids from the neighborhood of a point and puts them into foundEntries.voidflush()longintintgetLeafs()intintgetSize()booleanisClosed()booleanvoidquery(LocationIndex.TileFilter tileFilter, LocationIndex.Visitor function) voidquery(BBox queryShape, LocationIndex.Visitor function) voidsetChecksum(int checksum) voidsetMinResolutionInMeter(int minResolutionInMeter) voidstore(InMemConstructionIndex inMem)
-
Constructor Details
-
LineIntIndex
-
LineIntIndex
-
-
Method Details
-
loadExisting
public boolean loadExisting() -
store
-
query
-
query
-
findEdgeIdsInNeighborhood
public void findEdgeIdsInNeighborhood(double queryLat, double queryLon, int iteration, IntConsumer foundEntries) This method collects edge ids from the neighborhood of a point and puts them into foundEntries.If it is called with iteration = 0, it just looks in the tile the query point is in. If it is called with iteration = 0,1,2,.., it will look in additional tiles further and further from the start tile. (In a square that grows by one pixel in all four directions per iteration).
See discussion at issue #221.
-
getChecksum
public int getChecksum() -
getMinResolutionInMeter
public int getMinResolutionInMeter() -
setMinResolutionInMeter
public void setMinResolutionInMeter(int minResolutionInMeter) -
flush
public void flush() -
close
public void close() -
isClosed
public boolean isClosed() -
getCapacity
public long getCapacity() -
setChecksum
public void setChecksum(int checksum) -
getSize
public int getSize() -
getLeafs
public int getLeafs()
-