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