|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.indexmanagement.geo.refinement.Refiner
public abstract class Refiner
The base class for all Refiners
| Field Summary | |
|---|---|
protected InclusionType |
containmentMethod
The containment method used in the query |
protected GeoIndexType |
indexType
The index type of the Index using this Refiner |
protected boolean |
not
This flags indicates if we want to return the non-hits instead of the hits |
protected Polygon |
polygon
The query Minimal Bounding Rectangle |
protected com.vividsolutions.jts.geom.Envelope |
query
The query polygon |
| Constructor Summary | |
|---|---|
Refiner()
|
|
| Method Summary | |
|---|---|
void |
init(Polygon polygon,
InclusionType containmentMethod,
GeoIndexType indexType,
boolean not,
String[] args)
A method called by the GeoIndexResource after creating an instance of a Refiner |
protected abstract void |
initialize(String[] args)
The plugin specific initialization method. |
abstract boolean |
isHit(DataWrapper entry)
A plugin specific method used to determine which index entries are hits according to the given query. |
abstract boolean |
isIndexTypeCompatible(GeoIndexType indexType)
A method used to check if this Refiner plugin is compatible with indices/entries with a specific GeoIndexType |
int |
refine(List<DataWrapper> entries)
A method used to refine a list of GeoIndex entries using a plugin specific isHit(entry) method to determine which entries are valid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.vividsolutions.jts.geom.Envelope query
protected Polygon polygon
protected GeoIndexType indexType
protected InclusionType containmentMethod
protected boolean not
| Constructor Detail |
|---|
public Refiner()
| Method Detail |
|---|
public final void init(Polygon polygon,
InclusionType containmentMethod,
GeoIndexType indexType,
boolean not,
String[] args)
throws RefinerInitializationException
polygon - -
A polygon representation of the original query of which this
Refiner will refine the resultscontainmentMethod - -
The containment method used in the original queryindexType - -
The geo index type of the GeoIndex using this Refinerargs - -
Any additional plugin specific initialization arguments.
RefinerInitializationException - -
An error occurex while initializing the Refinerpublic final int refine(List<DataWrapper> entries)
entries - -
The list of entries to be refined
protected abstract void initialize(String[] args)
throws RefinerInitializationException
args - -
A plugin specific array of Strings used to initialize a
Refiner plugin.
RefinerInitializationException - -
An error occurex while initializing the Refinerpublic abstract boolean isIndexTypeCompatible(GeoIndexType indexType)
indexType - -
The GeoIndexType of which to check the compatability with this
plugin
public abstract boolean isHit(DataWrapper entry)
entry - -
the entry to determine if is a hit.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||