public class LineIntIndex extends Object
Constructor and Description |
---|
LineIntIndex(BBox bBox,
Directory dir,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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.
|
void |
flush() |
long |
getCapacity() |
int |
getChecksum() |
int |
getLeafs() |
int |
getMinResolutionInMeter() |
int |
getSize() |
boolean |
isClosed() |
boolean |
loadExisting() |
void |
query(BBox queryShape,
LocationIndex.Visitor function) |
void |
setChecksum(int checksum) |
void |
setMinResolutionInMeter(int minResolutionInMeter) |
void |
store(InMemConstructionIndex inMem) |
public boolean loadExisting()
public void store(InMemConstructionIndex inMem)
public void query(BBox queryShape, LocationIndex.Visitor function)
public void findEdgeIdsInNeighborhood(double queryLat, double queryLon, int iteration, IntConsumer 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.
public int getChecksum()
public int getMinResolutionInMeter()
public void setMinResolutionInMeter(int minResolutionInMeter)
public void flush()
public void close()
public boolean isClosed()
public long getCapacity()
public void setChecksum(int checksum)
public int getSize()
public int getLeafs()
Copyright © 2012–2022. All rights reserved.