Class PointPrefixTreeFieldCacheProvider
Implementation of ShapeFieldCacheProvider<T> designed for PrefixTreeStrategys.
Note, due to the fragmented representation of Shapes in these Strategies, this implementation can only retrieve the central Point of the original Shapes.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Spatial.Prefix
Assembly: Lucene.Net.Spatial.dll
Syntax
public class PointPrefixTreeFieldCacheProvider : ShapeFieldCacheProvider<IPoint>
Constructors
PointPrefixTreeFieldCacheProvider(SpatialPrefixTree, string, int)
Implementation of ShapeFieldCacheProvider<T> designed for PrefixTreeStrategys.
Note, due to the fragmented representation of Shapes in these Strategies, this implementation can only retrieve the central Point of the original Shapes.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public PointPrefixTreeFieldCacheProvider(SpatialPrefixTree grid, string shapeField, int defaultSize)
Parameters
Type | Name | Description |
---|---|---|
SpatialPrefixTree | grid | |
string | shapeField | |
int | defaultSize |
Methods
ReadShape(BytesRef)
Implementation of ShapeFieldCacheProvider<T> designed for PrefixTreeStrategys.
Note, due to the fragmented representation of Shapes in these Strategies, this implementation can only retrieve the central Point of the original Shapes.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected override IPoint ReadShape(BytesRef term)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | term |
Returns
Type | Description |
---|---|
IPoint |