Show / Hide Table of Contents

    Class ShapeFieldCache<T>

    Bounded Cache of Shapes associated with docIds. Note, multiple Shapes can be associated with a given docId

    WARNING: This class holds the data in an extremely inefficient manner as all Points are in memory as objects and they are stored in many Lists (one per document). So it works but doesn't scale. It will be replaced in the future.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    ShapeFieldCache<T>
    Namespace: Lucene.Net.Spatial.Util
    Assembly: Lucene.Net.Spatial.dll
    Syntax
    public class ShapeFieldCache<T> : object where T : IShape
    Type Parameters
    Name Description
    T

    Constructors

    | Improve this Doc View Source

    ShapeFieldCache(Int32, Int32)

    Declaration
    public ShapeFieldCache(int length, int defaultLength)
    Parameters
    Type Name Description
    System.Int32 length
    System.Int32 defaultLength

    Properties

    | Improve this Doc View Source

    DefaultLength

    Declaration
    public int DefaultLength { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Add(Int32, T)

    Declaration
    public virtual void Add(int docid, T s)
    Parameters
    Type Name Description
    System.Int32 docid
    T s
    | Improve this Doc View Source

    GetShapes(Int32)

    Declaration
    public virtual IList<T> GetShapes(int docid)
    Parameters
    Type Name Description
    System.Int32 docid
    Returns
    Type Description
    IList<T>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)