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
FieldsModifier and TypeFieldDescriptionprotected doubleprotected SpatialOperationprotected booleanprotected SpatialDocMaker.ShapeConverterprotected SpatialStrategyFields inherited from class org.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
config, qnum, queries -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QuerymakeQueryFromShape(org.locationtech.spatial4j.shape.Shape shape) protected Query[]voidSet 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:QueryMakerSet the properties- Specified by:
setConfigin interfaceQueryMaker- Overrides:
setConfigin classAbstractQueryMaker- Throws:
Exception
-
prepareQueries
- Specified by:
prepareQueriesin classAbstractQueryMaker- Throws:
Exception
-
makeQueryFromShape
-