Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class RecursivePrefixTreeStrategy

    A PrefixTreeStrategy which uses AbstractVisitingPrefixTreeFilter. This strategy has support for searching non-point shapes (note: not tested). Even a query shape with distErrPct=0 (fully precise to the grid) should have good performance for typical data, unless there is a lot of indexed data coincident with the shape's edge.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    SpatialStrategy
    PrefixTreeStrategy
    RecursivePrefixTreeStrategy
    Inherited Members
    PrefixTreeStrategy.m_grid
    PrefixTreeStrategy.m_simplifyIndexedCells
    PrefixTreeStrategy.m_defaultFieldValuesArrayLen
    PrefixTreeStrategy.m_distErrPct
    PrefixTreeStrategy.DefaultFieldValuesArrayLen
    PrefixTreeStrategy.DistErrPct
    PrefixTreeStrategy.CreateIndexableFields(IShape)
    PrefixTreeStrategy.CreateIndexableFields(IShape, double)
    PrefixTreeStrategy.FIELD_TYPE
    PrefixTreeStrategy.MakeDistanceValueSource(IPoint, double)
    PrefixTreeStrategy.Grid
    SpatialStrategy.m_ctx
    SpatialStrategy.SpatialContext
    SpatialStrategy.FieldName
    SpatialStrategy.MakeDistanceValueSource(IPoint)
    SpatialStrategy.MakeQuery(SpatialArgs)
    SpatialStrategy.MakeRecipDistanceValueSource(IShape)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Spatial.Prefix
    Assembly: Lucene.Net.Spatial.dll
    Syntax
    public class RecursivePrefixTreeStrategy : PrefixTreeStrategy

    Constructors

    RecursivePrefixTreeStrategy(SpatialPrefixTree, string)

    A PrefixTreeStrategy which uses AbstractVisitingPrefixTreeFilter. This strategy has support for searching non-point shapes (note: not tested). Even a query shape with distErrPct=0 (fully precise to the grid) should have good performance for typical data, unless there is a lot of indexed data coincident with the shape's edge.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    public RecursivePrefixTreeStrategy(SpatialPrefixTree grid, string fieldName)
    Parameters
    Type Name Description
    SpatialPrefixTree grid
    string fieldName

    Fields

    m_multiOverlappingIndexedShapes

    See m_multiOverlappingIndexedShapes.

    Declaration
    protected bool m_multiOverlappingIndexedShapes
    Field Value
    Type Description
    bool

    m_pointsOnly

    True if only indexed points shall be supported. See hasIndexedLeaves.

    Declaration
    protected bool m_pointsOnly
    Field Value
    Type Description
    bool

    Properties

    PrefixGridScanLevel

    Sets the grid level [1-maxLevels] at which indexed terms are scanned brute-force instead of by grid decomposition. By default this is maxLevels - 4. The final level, maxLevels, is always scanned. Value can be 1 to maxLevels.

    Declaration
    public virtual int PrefixGridScanLevel { get; set; }
    Property Value
    Type Description
    int

    Methods

    MakeFilter(SpatialArgs)

    Make a Filter based principally on SpatialOperation and Spatial4n.Shapes.IShape from the supplied args.

    If a subclasses implements MakeQuery(SpatialArgs) then this method could be simply:
    return new QueryWrapperFilter(MakeQuery(args).Query);
    Declaration
    public override Filter MakeFilter(SpatialArgs args)
    Parameters
    Type Name Description
    SpatialArgs args
    Returns
    Type Description
    Filter
    Overrides
    SpatialStrategy.MakeFilter(SpatialArgs)
    Exceptions
    Type Condition
    NotSupportedException

    If the strategy does not support the shape in args.

    UnsupportedSpatialOperationException

    If the strategy does not support the SpatialOperation in args.

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    SpatialStrategy.ToString()
    Back to top Copyright © 2024 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.