• 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 TextReader, 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.

    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
    public 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 © 2020 Licensed to the Apache Software Foundation (ASF)