Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SpatialFileQueryMaker

    Reads spatial data from the body field docs from an internally created LineDocSource. It's parsed by Spatial4n.Core.Context.SpatialContext.ReadShapeFromWkt(System.String) and then further manipulated via a configurable IShapeConverter. 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 & 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.".

    Inheritance
    System.Object
    AbstractQueryMaker
    SpatialFileQueryMaker
    Implements
    IQueryMaker
    Inherited Members
    AbstractQueryMaker.m_qnum
    AbstractQueryMaker.m_queries
    AbstractQueryMaker.m_config
    AbstractQueryMaker.ResetInputs()
    AbstractQueryMaker.PrintQueries()
    AbstractQueryMaker.MakeQuery()
    AbstractQueryMaker.NextQnum()
    AbstractQueryMaker.MakeQuery(Int32)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Benchmarks.ByTask.Feeds
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class SpatialFileQueryMaker : AbstractQueryMaker, IQueryMaker

    Fields

    | Improve this Doc View Source

    m_distErrPct

    Declaration
    protected double m_distErrPct
    Field Value
    Type Description
    System.Double
    | Improve this Doc View Source

    m_operation

    Declaration
    protected SpatialOperation m_operation
    Field Value
    Type Description
    Lucene.Net.Spatial.Queries.SpatialOperation
    | Improve this Doc View Source

    m_score

    Declaration
    protected bool m_score
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    m_shapeConverter

    Declaration
    protected IShapeConverter m_shapeConverter
    Field Value
    Type Description
    IShapeConverter
    | Improve this Doc View Source

    m_strategy

    Declaration
    protected SpatialStrategy m_strategy
    Field Value
    Type Description
    Lucene.Net.Spatial.SpatialStrategy

    Methods

    | Improve this Doc View Source

    MakeQueryFromShape(IShape)

    Declaration
    protected virtual Query MakeQueryFromShape(IShape shape)
    Parameters
    Type Name Description
    Spatial4n.Core.Shapes.IShape shape
    Returns
    Type Description
    Lucene.Net.Search.Query
    | Improve this Doc View Source

    PrepareQueries()

    Declaration
    protected override Query[] PrepareQueries()
    Returns
    Type Description
    Lucene.Net.Search.Query[]
    Overrides
    AbstractQueryMaker.PrepareQueries()
    | Improve this Doc View Source

    SetConfig(Config)

    Declaration
    public override void SetConfig(Config config)
    Parameters
    Type Name Description
    Config config
    Overrides
    AbstractQueryMaker.SetConfig(Config)

    Implements

    IQueryMaker
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.