Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ShapeFieldCacheProvider<T>

    Provides access to a ShapeFieldCache<T> for a given Lucene.Net.Index.AtomicReader.

    If a Cache does not exist for the Reader, then it is built by iterating over the all terms for a given field, reconstructing the Shape from them, and adding them to the Cache.

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Inheritance
    System.Object
    ShapeFieldCacheProvider<T>
    PointPrefixTreeFieldCacheProvider
    Inherited Members
    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.Spatial.Util
    Assembly: Lucene.Net.Spatial.dll
    Syntax
    public abstract class ShapeFieldCacheProvider<T>
        where T : IShape
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

    ShapeFieldCacheProvider(String, Int32)

    Declaration
    protected ShapeFieldCacheProvider(string shapeField, int defaultSize)
    Parameters
    Type Name Description
    System.String shapeField
    System.Int32 defaultSize

    Fields

    | Improve this Doc View Source

    m_defaultSize

    Declaration
    protected readonly int m_defaultSize
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    m_shapeField

    Declaration
    protected readonly string m_shapeField
    Field Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    GetCache(AtomicReader)

    Declaration
    public virtual ShapeFieldCache<T> GetCache(AtomicReader reader)
    Parameters
    Type Name Description
    Lucene.Net.Index.AtomicReader reader
    Returns
    Type Description
    ShapeFieldCache<T>
    | Improve this Doc View Source

    ReadShape(BytesRef)

    Declaration
    protected abstract T ReadShape(BytesRef term)
    Parameters
    Type Name Description
    Lucene.Net.Util.BytesRef term
    Returns
    Type Description
    T
    • 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.