public abstract class Refiner extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Refiner() |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected com.vividsolutions.jts.geom.Envelope query
protected Polygon polygon
protected GeoIndexType indexType
protected InclusionType containmentMethod
protected boolean not
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 refinedprotected 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
pluginpublic abstract boolean isHit(DataWrapper entry)
entry - -
the entry to determine if is a hit.Copyright © 2014. All Rights Reserved.