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>
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 SourceShapeFieldCache(Int32, Int32)
Declaration
public ShapeFieldCache(int length, int defaultLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | length | |
System.Int32 | defaultLength |
Properties
| Improve this Doc View SourceDefaultLength
Declaration
public int DefaultLength { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAdd(Int32, T)
Declaration
public virtual void Add(int docid, T s)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | docid | |
T | s |
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> |