public class WrappedSpatialIndex extends java.lang.Object implements SpatialIndex
Modifier and Type | Class and Description |
---|---|
protected class |
WrappedSpatialIndex.Oid2FeatureReferenceIterator |
protected class |
WrappedSpatialIndex.Oid2FeatureReferenceVisitor |
Constructor and Description |
---|
WrappedSpatialIndex(SpatialIndex index,
FeatureStore store) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<FeatureReference> |
asList(java.util.Iterator it) |
void |
close() |
void |
flush() |
SpatialIndexFactory |
getFactory() |
Manager |
getManager()
Returns a reference to the
Manager which manages this server. |
protected java.lang.Object |
getOID(java.lang.Object obj) |
void |
insert(Envelope envelope,
java.lang.Object data) |
void |
insert(Geometry geom) |
void |
insert(Geometry geom,
java.lang.Object data) |
void |
open() |
java.util.Iterator<FeatureReference> |
query(Envelope envelope) |
java.util.Iterator<FeatureReference> |
query(Envelope envelope,
long limit) |
void |
query(Envelope envelope,
Visitor visitor) |
java.util.Iterator<FeatureReference> |
query(Geometry geom) |
java.util.Iterator<FeatureReference> |
query(Geometry geom,
long limit) |
void |
query(Geometry geom,
Visitor visitor) |
java.util.Iterator<FeatureReference> |
queryAll() |
java.util.List<FeatureReference> |
queryAllAsList() |
java.util.List<FeatureReference> |
queryAsList(Envelope envelope) |
java.util.List<FeatureReference> |
queryAsList(Geometry geom) |
java.util.Iterator<FeatureReference> |
queryNearest(Envelope envelope) |
java.util.Iterator<FeatureReference> |
queryNearest(Envelope envelope,
long limit) |
java.util.Iterator<FeatureReference> |
queryNearest(Geometry geom) |
java.util.Iterator<FeatureReference> |
queryNearest(Geometry geom,
long limit) |
boolean |
remove(Envelope envelope,
java.lang.Object data) |
boolean |
remove(Geometry geom) |
boolean |
remove(Geometry geom,
java.lang.Object data) |
void |
removeAll() |
long |
size() |
public WrappedSpatialIndex(SpatialIndex index, FeatureStore store)
public SpatialIndexFactory getFactory()
getFactory
in interface SpatialIndex
public void open()
open
in interface SpatialIndex
public void close()
close
in interface SpatialIndex
public void query(Envelope envelope, Visitor visitor)
query
in interface SpatialIndex
public void query(Geometry geom, Visitor visitor)
query
in interface SpatialIndex
public java.util.Iterator<FeatureReference> query(Envelope envelope, long limit)
query
in interface SpatialIndex
public java.util.Iterator<FeatureReference> query(Envelope envelope)
query
in interface SpatialIndex
public java.util.Iterator<FeatureReference> query(Geometry geom, long limit)
query
in interface SpatialIndex
public java.util.Iterator<FeatureReference> query(Geometry geom)
query
in interface SpatialIndex
public java.util.Iterator<FeatureReference> queryNearest(Envelope envelope, long limit)
queryNearest
in interface SpatialIndex
public java.util.Iterator<FeatureReference> queryNearest(Envelope envelope)
queryNearest
in interface SpatialIndex
public java.util.Iterator<FeatureReference> queryNearest(Geometry geom, long limit)
queryNearest
in interface SpatialIndex
public java.util.Iterator<FeatureReference> queryNearest(Geometry geom)
queryNearest
in interface SpatialIndex
public java.util.Iterator<FeatureReference> queryAll()
queryAll
in interface SpatialIndex
public java.util.List<FeatureReference> queryAsList(Envelope envelope)
queryAsList
in interface SpatialIndex
public java.util.List<FeatureReference> queryAsList(Geometry geom)
queryAsList
in interface SpatialIndex
public java.util.List<FeatureReference> queryAllAsList()
queryAllAsList
in interface SpatialIndex
public void insert(Envelope envelope, java.lang.Object data)
insert
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(Envelope envelope, java.lang.Object data)
remove
in interface SpatialIndex
public boolean remove(Geometry geom, java.lang.Object data)
remove
in interface SpatialIndex
public boolean remove(Geometry geom)
remove
in interface SpatialIndex
public void removeAll()
removeAll
in interface SpatialIndex
public long size()
size
in interface SpatialIndex
public void flush()
flush
in interface SpatialIndex
public Manager getManager()
Service
Manager
which manages this server.getManager
in interface Service
Manager
protected java.lang.Object getOID(java.lang.Object obj)
protected java.util.List<FeatureReference> asList(java.util.Iterator it)