Class ShapeFieldCacheProvider<T>
Provides access to a ShapeFieldCache<T> for a given Lucene.Net.Index.AtomicReader.
If a Cache does not exist for the TextReader, then it is built by iterating over the all terms for a given field, reconstructing the Shape from them, and adding them to the Cache.
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 abstract class ShapeFieldCacheProvider<T>
where T : IShape
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceShapeFieldCacheProvider(String, Int32)
Declaration
protected ShapeFieldCacheProvider(string shapeField, int defaultSize)
Parameters
Type | Name | Description |
---|---|---|
System.String | shapeField | |
System.Int32 | defaultSize |
Fields
| Improve this Doc View Sourcem_defaultSize
Declaration
protected readonly int m_defaultSize
Field Value
Type | Description |
---|---|
System.Int32 |
m_shapeField
Declaration
protected readonly string m_shapeField
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetCache(AtomicReader)
Declaration
public virtual ShapeFieldCache<T> GetCache(AtomicReader reader)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.AtomicReader | reader |
Returns
Type | Description |
---|---|
ShapeFieldCache<T> |
ReadShape(BytesRef)
Declaration
protected abstract T ReadShape(BytesRef term)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Util.BytesRef | term |
Returns
Type | Description |
---|---|
T |