public abstract class ShapeFieldCacheProvider<T extends org.locationtech.spatial4j.shape.Shape>
extends java.lang.Object
ShapeFieldCache for a given LeafReader.
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.| Modifier and Type | Field and Description |
|---|---|
protected int |
defaultSize |
protected java.lang.String |
shapeField |
| Constructor and Description |
|---|
ShapeFieldCacheProvider(java.lang.String shapeField,
int defaultSize) |
| Modifier and Type | Method and Description |
|---|---|
ShapeFieldCache<T> |
getCache(LeafReader reader) |
protected abstract T |
readShape(BytesRef term) |
protected final int defaultSize
protected final java.lang.String shapeField
public ShapeFieldCacheProvider(java.lang.String shapeField,
int defaultSize)
public ShapeFieldCache<T> getCache(LeafReader reader) throws java.io.IOException
java.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.