Class SpatialFileQueryMaker
java.lang.Object
org.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
org.apache.lucene.benchmark.byTask.feeds.SpatialFileQueryMaker
- All Implemented Interfaces:
QueryMaker
Reads spatial data from the body field docs from an internally created
LineDocSource
.
It's parsed by SpatialContext.readShapeFromWkt(String)
(String)} and then further manipulated via a configurable SpatialDocMaker.ShapeConverter
.
When using point data, it's likely you'll want to configure the shape converter so that the query
shapes actually cover a region. The queries are all created and cached in advance. This query
maker works in conjunction with SpatialDocMaker
. See spatial.alg for a listing of
options, in particular the options starting with "query.".-
Field Summary
Modifier and TypeFieldDescriptionprotected double
protected SpatialOperation
protected boolean
protected SpatialDocMaker.ShapeConverter
protected SpatialStrategy
Fields inherited from class org.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
config, qnum, queries
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Query
makeQueryFromShape
(org.locationtech.spatial4j.shape.Shape shape) protected Query[]
void
Set the propertiesMethods inherited from class org.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
makeQuery, makeQuery, nextQnum, printQueries, resetInputs
-
Field Details
-
strategy
-
distErrPct
protected double distErrPct -
operation
-
score
protected boolean score -
shapeConverter
-
-
Constructor Details
-
SpatialFileQueryMaker
public SpatialFileQueryMaker()
-
-
Method Details
-
setConfig
Description copied from interface:QueryMaker
Set the properties- Specified by:
setConfig
in interfaceQueryMaker
- Overrides:
setConfig
in classAbstractQueryMaker
- Throws:
Exception
-
prepareQueries
- Specified by:
prepareQueries
in classAbstractQueryMaker
- Throws:
Exception
-
makeQueryFromShape
-