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
    object
    ShapeFieldCacheProvider<T>
    PointPrefixTreeFieldCacheProvider
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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

    ShapeFieldCacheProvider(string, int)

    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.

    Declaration
    protected ShapeFieldCacheProvider(string shapeField, int defaultSize)
    Parameters
    Type Name Description
    string shapeField
    int defaultSize

    Fields

    m_defaultSize

    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.

    Declaration
    protected readonly int m_defaultSize
    Field Value
    Type Description
    int

    m_shapeField

    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.

    Declaration
    protected readonly string m_shapeField
    Field Value
    Type Description
    string

    Methods

    GetCache(AtomicReader)

    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.

    Declaration
    public virtual ShapeFieldCache<T> GetCache(AtomicReader reader)
    Parameters
    Type Name Description
    AtomicReader reader
    Returns
    Type Description
    ShapeFieldCache<T>

    ReadShape(BytesRef)

    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.

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