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
    object
    ShapeFieldCache<T>
    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 class ShapeFieldCache<T> where T : IShape
    Type Parameters
    Name Description
    T

    Constructors

    ShapeFieldCache(int, int)

    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.

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

    Properties

    DefaultLength

    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.

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

    Methods

    Add(int, 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.

    Declaration
    public virtual void Add(int docid, T s)
    Parameters
    Type Name Description
    int docid
    T s

    GetShapes(int)

    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.

    Declaration
    public virtual IList<T> GetShapes(int docid)
    Parameters
    Type Name Description
    int docid
    Returns
    Type Description
    IList<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.