Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ShapePredicateValueSource

    A boolean Lucene.Net.Queries.Function.ValueSource that compares a shape from a provided Lucene.Net.Queries.Function.ValueSource with a given Spatial4n.Shapes.IShape and sees if it matches a given SpatialOperation (the predicate).

    Note

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

    Inheritance
    System.Object
    Lucene.Net.Queries.Function.ValueSource
    ShapePredicateValueSource
    Inherited Members
    Lucene.Net.Queries.Function.ValueSource.ToString()
    Lucene.Net.Queries.Function.ValueSource.NewContext(Lucene.Net.Search.IndexSearcher)
    Lucene.Net.Queries.Function.ValueSource.GetSortField(System.Boolean)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.Spatial.Util
    Assembly: Lucene.Net.Spatial.dll
    Syntax
    public class ShapePredicateValueSource : ValueSource

    Constructors

    | Improve this Doc View Source

    ShapePredicateValueSource(ValueSource, SpatialOperation, IShape)

    Declaration
    public ShapePredicateValueSource(ValueSource shapeValueSource, SpatialOperation op, IShape queryShape)
    Parameters
    Type Name Description
    Lucene.Net.Queries.Function.ValueSource shapeValueSource

    Must yield Spatial4n.Shapes.IShape instances from it's ObjectVal(doc). If null then the result is false. This is the left-hand (indexed) side.

    SpatialOperation op

    the predicate

    Spatial4n.Shapes.IShape queryShape

    The shape on the right-hand (query) side.

    Methods

    | Improve this Doc View Source

    CreateWeight(IDictionary, IndexSearcher)

    Declaration
    public override void CreateWeight(IDictionary context, IndexSearcher searcher)
    Parameters
    Type Name Description
    System.Collections.IDictionary context
    Lucene.Net.Search.IndexSearcher searcher
    Overrides
    Lucene.Net.Queries.Function.ValueSource.CreateWeight(System.Collections.IDictionary, Lucene.Net.Search.IndexSearcher)
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object o)
    Parameters
    Type Name Description
    System.Object o
    Returns
    Type Description
    System.Boolean
    Overrides
    Lucene.Net.Queries.Function.ValueSource.Equals(System.Object)
    | Improve this Doc View Source

    GetDescription()

    Declaration
    public override string GetDescription()
    Returns
    Type Description
    System.String
    Overrides
    Lucene.Net.Queries.Function.ValueSource.GetDescription()
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    Lucene.Net.Queries.Function.ValueSource.GetHashCode()
    | Improve this Doc View Source

    GetValues(IDictionary, AtomicReaderContext)

    Declaration
    public override FunctionValues GetValues(IDictionary context, AtomicReaderContext readerContext)
    Parameters
    Type Name Description
    System.Collections.IDictionary context
    Lucene.Net.Index.AtomicReaderContext readerContext
    Returns
    Type Description
    Lucene.Net.Queries.Function.FunctionValues
    Overrides
    Lucene.Net.Queries.Function.ValueSource.GetValues(System.Collections.IDictionary, Lucene.Net.Index.AtomicReaderContext)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.