public abstract class AbstractSpatialIndex extends java.lang.Object implements SpatialIndex
Constructor and Description |
---|
AbstractSpatialIndex(GeometryManager geometryManager,
SpatialIndexFactory factory,
DynObject parameters) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
asList(java.util.Iterator it) |
protected java.lang.Object |
coerceData(java.lang.Object data) |
void |
flush() |
SpatialIndexFactory |
getFactory() |
Manager |
getManager()
Returns a reference to the
Manager which manages this server. |
java.lang.Object |
getParameter(java.lang.String name) |
DynObject |
getParameters() |
void |
insert(Geometry geom) |
void |
insert(Geometry geom,
java.lang.Object data) |
java.util.Iterator |
query(Envelope envelope) |
java.util.Iterator |
query(Geometry geom) |
java.util.Iterator |
query(Geometry geom,
long limit) |
void |
query(Geometry geom,
Visitor visitor) |
java.util.List |
queryAllAsList() |
java.util.List |
queryAsList(Envelope envelope) |
java.util.List |
queryAsList(Geometry geom) |
java.util.Iterator |
queryNearest(Envelope envelope) |
java.util.Iterator |
queryNearest(Geometry geom) |
java.util.Iterator |
queryNearest(Geometry geom,
long limit) |
boolean |
remove(Geometry geom) |
boolean |
remove(Geometry geom,
java.lang.Object data) |
public AbstractSpatialIndex(GeometryManager geometryManager, SpatialIndexFactory factory, DynObject parameters)
public Manager getManager()
Service
Manager
which manages this server.getManager
in interface Service
Manager
public SpatialIndexFactory getFactory()
getFactory
in interface SpatialIndex
public DynObject getParameters()
public java.lang.Object getParameter(java.lang.String name)
public void query(Geometry geom, Visitor visitor)
query
in interface SpatialIndex
public java.util.Iterator query(Geometry geom)
query
in interface SpatialIndex
public java.util.Iterator query(Envelope envelope)
query
in interface SpatialIndex
public java.util.Iterator query(Geometry geom, long limit)
query
in interface SpatialIndex
public java.util.Iterator queryNearest(Envelope envelope)
queryNearest
in interface SpatialIndex
public java.util.Iterator queryNearest(Geometry geom)
queryNearest
in interface SpatialIndex
public java.util.Iterator queryNearest(Geometry geom, long limit)
queryNearest
in interface SpatialIndex
public void insert(Geometry geom, java.lang.Object data)
insert
in interface SpatialIndex
public void insert(Geometry geom)
insert
in interface SpatialIndex
public boolean remove(Geometry geom)
remove
in interface SpatialIndex
public boolean remove(Geometry geom, java.lang.Object data)
remove
in interface SpatialIndex
public java.util.List queryAsList(Envelope envelope)
queryAsList
in interface SpatialIndex
public java.util.List queryAsList(Geometry geom)
queryAsList
in interface SpatialIndex
public java.util.List queryAllAsList()
queryAllAsList
in interface SpatialIndex
protected java.util.List asList(java.util.Iterator it)
protected java.lang.Object coerceData(java.lang.Object data)
public void flush()
flush
in interface SpatialIndex