Class ShapeFieldCacheProvider<T>
Provides access to a ShapeFieldCache<T> for a given Lucene.Net.Index.AtomicReader.
If a Cache does not exist for the Reader, 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.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 abstract class ShapeFieldCacheProvider<T> where T : IShape
  Type Parameters
| Name | Description | 
|---|---|
| T | 
Constructors
ShapeFieldCacheProvider(string, int)
Provides access to a ShapeFieldCache<T> for a given Lucene.Net.Index.AtomicReader.
If a Cache does not exist for the Reader, 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.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected ShapeFieldCacheProvider(string shapeField, int defaultSize)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | shapeField | |
| int | defaultSize | 
Fields
m_defaultSize
Provides access to a ShapeFieldCache<T> for a given Lucene.Net.Index.AtomicReader.
If a Cache does not exist for the Reader, 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.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected readonly int m_defaultSize
  Field Value
| Type | Description | 
|---|---|
| int | 
m_shapeField
Provides access to a ShapeFieldCache<T> for a given Lucene.Net.Index.AtomicReader.
If a Cache does not exist for the Reader, 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.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected readonly string m_shapeField
  Field Value
| Type | Description | 
|---|---|
| string | 
Methods
GetCache(AtomicReader)
Provides access to a ShapeFieldCache<T> for a given Lucene.Net.Index.AtomicReader.
If a Cache does not exist for the Reader, 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.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public virtual ShapeFieldCache<T> GetCache(AtomicReader reader)
  Parameters
| Type | Name | Description | 
|---|---|---|
| AtomicReader | reader | 
Returns
| Type | Description | 
|---|---|
| ShapeFieldCache<T> | 
ReadShape(BytesRef)
Provides access to a ShapeFieldCache<T> for a given Lucene.Net.Index.AtomicReader.
If a Cache does not exist for the Reader, 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.Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
protected abstract T ReadShape(BytesRef term)
  Parameters
| Type | Name | Description | 
|---|---|---|
| BytesRef | term | 
Returns
| Type | Description | 
|---|---|
| T |