Show / Hide Table of Contents

    Class ShapeFieldCacheProvider<T>

    Provides access to a ShapeFieldCache<T> for a given 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
    Namespace: Lucene.Net.Spatial.Util
    Assembly: Lucene.Net.Spatial.dll
    Syntax
    public abstract class ShapeFieldCacheProvider<T> : object 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
    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
    BytesRef term
    Returns
    Type Description
    T
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)