public class RTreeWrapper extends org.geotools.index.rtree.RTree implements Comparable<RTreeWrapper>
| Modifier and Type | Class and Description |
|---|---|
static class |
RTreeWrapper.GeoSearchModifiers |
static class |
RTreeWrapper.SupportedRelations |
| Constructor and Description |
|---|
RTreeWrapper(File indexFile,
GeoIndexType indexTypeObject,
long maxArea,
RandomAccessFile rawData)
A constructor which builds an index that stores data in the specified
PageStore, and which handles envelopes with an area size lower than the
specified maxArea.
|
RTreeWrapper(File indexFile,
GeoIndexType indexTypeObject,
RandomAccessFile rawData)
A constructor which builds an index that stores data in the specified
PageStore
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RTreeWrapper object) |
String |
getIndexFile() |
long |
getMaxArea()
Gets the maximum area of objects to be handled by this index
|
void |
insert(DataWrapper geoData)
Inserts an Entry into the wrapped RTree
|
QueryResults |
performQuery(com.vividsolutions.jts.geom.Envelope query,
InclusionType method,
Refiner[] refiners,
RankEvaluator ranker)
Performs a query on this index
|
void |
setMaxArea(long area)
Sets the maximum area of objects to be handled by this index
|
public RTreeWrapper(File indexFile, GeoIndexType indexTypeObject, RandomAccessFile rawData) throws org.geotools.index.TreeException
indexFile - - the file where to store data.indexTypeObject - - the geo type object.org.geotools.index.TreeException - - in case opf failure.public RTreeWrapper(File indexFile, GeoIndexType indexTypeObject, long maxArea, RandomAccessFile rawData) throws org.geotools.index.TreeException
indexFile - - the file where to store data.indexTypeObject - - the geo object type.maxArea - long - the maximum area of objects to be
handled by this indexorg.geotools.index.TreeException - - in case of failurepublic void insert(DataWrapper geoData) throws IndexException
geoData - -
A DataWrapper containing the coordinates, id and data of the
entry to be addedIndexException - unable to insert the entry into the RTreepublic void setMaxArea(long area)
maxArea - long - the maximum area of objects to be
handled by this indexpublic long getMaxArea()
long - the maximum area of objects to be handled
by this indexpublic int compareTo(RTreeWrapper object)
compareTo in interface Comparable<RTreeWrapper>public String getIndexFile()
public QueryResults performQuery(com.vividsolutions.jts.geom.Envelope query, InclusionType method, Refiner[] refiners, RankEvaluator ranker) throws org.geotools.index.TreeException, org.geotools.index.LockTimeoutException, Exception
query - -
The area to look for results inmethod - -
The containment method to use for the queryrefiners - -
A list refiners to use to refine the resultsranker - -
A ranker to use to rank/sort the resultsorg.geotools.index.TreeException - -
an error querying the underlying RTreeorg.geotools.index.LockTimeoutException - -
an error querying the underlying RTreeExceptionCopyright © 2014. All Rights Reserved.