Show / Hide Table of Contents

    Class SpatialPrefixTreeFactory

    Abstract Factory for creating SpatialPrefixTree instances with useful defaults and passed on configurations defined in a .

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    SpatialPrefixTreeFactory
    GeohashPrefixTree.Factory
    QuadPrefixTree.Factory
    Namespace: Lucene.Net.Spatial.Prefix.Tree
    Assembly: Lucene.Net.Spatial.dll
    Syntax
    public abstract class SpatialPrefixTreeFactory : object

    Fields

    | Improve this Doc View Source

    m_args

    Declaration
    protected IDictionary<string, string> m_args
    Field Value
    Type Description
    IDictionary<System.String, System.String>
    | Improve this Doc View Source

    m_ctx

    Declaration
    protected SpatialContext m_ctx
    Field Value
    Type Description
    SpatialContext
    | Improve this Doc View Source

    m_maxLevels

    Declaration
    protected int? m_maxLevels
    Field Value
    Type Description
    System.Nullable<System.Int32>
    | Improve this Doc View Source

    MAX_DIST_ERR

    Declaration
    public const string MAX_DIST_ERR = null
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    MAX_LEVELS

    Declaration
    public const string MAX_LEVELS = null
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    PREFIX_TREE

    Declaration
    public const string PREFIX_TREE = null
    Field Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    GetLevelForDistance(Double)

    Calls GetLevelForDistance(Double).

    Declaration
    protected abstract int GetLevelForDistance(double degrees)
    Parameters
    Type Name Description
    System.Double degrees
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Init(IDictionary<String, String>, SpatialContext)

    Declaration
    protected virtual void Init(IDictionary<string, string> args, SpatialContext ctx)
    Parameters
    Type Name Description
    IDictionary<System.String, System.String> args
    SpatialContext ctx
    | Improve this Doc View Source

    InitMaxLevels()

    Declaration
    protected virtual void InitMaxLevels()
    | Improve this Doc View Source

    MakeSPT(IDictionary<String, String>, SpatialContext)

    The factory is looked up via "prefixTree" in args, expecting "geohash" or "quad".

    Declaration
    public static SpatialPrefixTree MakeSPT(IDictionary<string, string> args, SpatialContext ctx)
    Parameters
    Type Name Description
    IDictionary<System.String, System.String> args
    SpatialContext ctx
    Returns
    Type Description
    SpatialPrefixTree
    Remarks

    The factory is looked up via "prefixTree" in args, expecting "geohash" or "quad". If its neither of these, then "geohash" is chosen for a geo context, otherwise "quad" is chosen.

    | Improve this Doc View Source

    NewSPT()

    Declaration
    protected abstract SpatialPrefixTree NewSPT()
    Returns
    Type Description
    SpatialPrefixTree
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)