|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.geotools.index.rtree.RTree
org.gcube.indexmanagement.geo.RTreeWrapper
public class RTreeWrapper
A class extending the RTree with data and functionality useful when building a pyramid of indices.
| Nested Class Summary | |
|---|---|
static class |
RTreeWrapper.GeoSearchModifiers
|
static class |
RTreeWrapper.SupportedRelations
|
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.geotools.index.rtree.RTree |
|---|
close, delete, getBounds, getBounds, getDataDefinition, insert, search, search, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 index
org.geotools.index.TreeException - - in case of failure| Method Detail |
|---|
public void insert(DataWrapper geoData)
throws IndexException
geoData - -
A DataWrapper containing the coordinates, id and data of the
entry to be added
IndexException - 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 results
org.geotools.index.TreeException - -
an error querying the underlying RTree
org.geotools.index.LockTimeoutException - -
an error querying the underlying RTree
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||