|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.indexmanagement.geo.ranking.RankEvaluator
public abstract class RankEvaluator
The base class for all RankEvaluators
| Field Summary | |
|---|---|
protected InclusionType |
containmentMethod
The containment method used in the query |
protected GeoIndexType |
indexType
The index type of the Index using this RankEvaluator |
protected Polygon |
polygon
The query polygon |
protected com.vividsolutions.jts.geom.Envelope |
query
The query Minimal Bounding Rectangle |
protected boolean |
reverseSort
An indicator of whether the sorting should be reversed |
| Constructor Summary | |
|---|---|
RankEvaluator()
|
|
| Method Summary | |
|---|---|
int |
compare(DataWrapper data1,
DataWrapper data2)
|
void |
init(Polygon polygon,
InclusionType containmentMethod,
Boolean reverseSort,
GeoIndexType indexType,
String[] args)
A method called by the GeoIndexResource after creating an instance of a RankEvaluator |
protected abstract void |
initialize(String[] args)
The plugin specific initialization method. |
abstract boolean |
isIndexTypeCompatible(GeoIndexType indexType)
A method used to check if this RankEvaluator plugin is compatible with indices/entries with a specific GeoIndexType |
abstract double |
rank(DataWrapper data)
A method used to rank a GeoIndex entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Field Detail |
|---|
protected Polygon polygon
protected com.vividsolutions.jts.geom.Envelope query
protected GeoIndexType indexType
protected InclusionType containmentMethod
protected boolean reverseSort
| Constructor Detail |
|---|
public RankEvaluator()
| Method Detail |
|---|
public final int compare(DataWrapper data1,
DataWrapper data2)
compare in interface Comparator<DataWrapper>
public final void init(Polygon polygon,
InclusionType containmentMethod,
Boolean reverseSort,
GeoIndexType indexType,
String[] args)
throws RankEvaluatorInitializationException
polygon - -
A polygon representation of the original query of which this
RankEvaluator will rank the resultscontainmentMethod - -
The containment method used in the original queryreverseSort - -
An indicator of whether the rank evaluator should sort the
results in reverseindexType - -
The geo index type of the GeoIndex using this RankEvaluatorargs - -
Any additional plugin specific initialization arguments.
RankEvaluatorInitializationException - -
An error occurex while initializing the RankEvaluator
protected abstract void initialize(String[] args)
throws RankEvaluatorInitializationException
args - -
A plugin specific array of Strings used to initialize a
RankEvaluator plugin.
RankEvaluatorInitializationException - -
An error occurex while initializing the RankEvaluatorpublic abstract boolean isIndexTypeCompatible(GeoIndexType indexType)
indexType - -
The GeoIndexType of which to check the compatability with this
plugin
public abstract double rank(DataWrapper data)
data - -
The GeoIndex entry to rank.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||