Fork me on GitHub
  • API

    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.

    Note

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

    Inheritance
    System.Object
    ShapeFieldCache<T>
    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 class ShapeFieldCache<T>
        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
    System.Collections.Generic.IList<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.