|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.indexmanagement.geo.QueryResults
public class QueryResults
A class used to wrap the results of a query in order to incrementally refine, sort and return them upon request
| Constructor Summary | |
|---|---|
QueryResults(GeoIndexType indexTypeObject,
List<org.geotools.index.Data> unrefinedResults,
Refiner[] refiners,
RankEvaluator ranker,
RandomAccessFile rawData)
A Constructor which wraps a list of unrefined results, and assigns the refiners and sorters to be used. |
|
| Method Summary | |
|---|---|
ArrayList<DataWrapper> |
getAll()
Returns all results (including previously retrieved), without updating the position marker (ie. |
int |
getCurrentRefinedCount()
A method to get the current number of refined hits |
int |
getCurrentUnrefinedCount()
A method to get the current number of hits processed |
ArrayList<DataWrapper> |
getNext(int numberOfResults)
A method to refine, sort and return a specified number of results |
ArrayList<DataWrapper> |
getRest()
Returns the rest of the available results |
int |
getTotalHitCount()
A method to get the total number of (unrefined) hits |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryResults(GeoIndexType indexTypeObject,
List<org.geotools.index.Data> unrefinedResults,
Refiner[] refiners,
RankEvaluator ranker,
RandomAccessFile rawData)
throws Exception
indexTypeObject - - type of geo objectunrefinedResults - -
A list of the unrefined results of a queryrefiners - -
An array of the refiners specified for the queryranker - -
The ranker specified for the query
Exception| Method Detail |
|---|
public ArrayList<DataWrapper> getNext(int numberOfResults)
numberOfResults - -
the number of results to return
public ArrayList<DataWrapper> getRest()
public ArrayList<DataWrapper> getAll()
public int getTotalHitCount()
public int getCurrentRefinedCount()
public int getCurrentUnrefinedCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||