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.
Inherited Members
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> |