public class QueryResults extends Object
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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 queryExceptionpublic ArrayList<DataWrapper> getNext(int numberOfResults)
numberOfResults - -
the number of results to returnpublic ArrayList<DataWrapper> getRest()
public ArrayList<DataWrapper> getAll()
public int getTotalHitCount()
public int getCurrentRefinedCount()
public int getCurrentUnrefinedCount()
Copyright © 2014. All Rights Reserved.