public class HoleSpatialIndex
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
HoleSpatialIndex()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Hole h)
Add a hole to the index
|
java.util.ArrayList<Hole> |
find(long start,
long end)
find holes
|
void |
find(long start,
long end,
java.util.Collection<Hole> r)
find holes giving a HashSet to be filled
|
void |
find(long start,
long end,
java.util.Collection<Hole> r,
HoleFilter f)
find holes giving a HashSet to be filled
|
long |
getLength()
compute the length of the virtual book
|
long |
getMaxTile() |
long |
getMinTile() |
java.util.List<Hole> |
getTile(long tile)
get the tile from its number
|
protected java.util.ArrayList<Hole> |
internalGetTile(long tile) |
void |
remove(Hole h)
Remove a hole from the spatial index
|
public void add(Hole h)
h - public void remove(Hole h)
h - public long getMaxTile()
public long getMinTile()
public java.util.List<Hole> getTile(long tile)
tile - protected java.util.ArrayList<Hole> internalGetTile(long tile)
tile - public void find(long start,
long end,
java.util.Collection<Hole> r,
HoleFilter f)
start - end - r - public void find(long start,
long end,
java.util.Collection<Hole> r)
start - end - r - public java.util.ArrayList<Hole> find(long start, long end)
start - end - public long getLength()