public abstract class ShapeFieldCacheProvider<T extends org.locationtech.spatial4j.shape.Shape> extends 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 String |
shapeField |
Constructor and Description |
---|
ShapeFieldCacheProvider(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 String shapeField
public ShapeFieldCacheProvider(String shapeField, int defaultSize)
public ShapeFieldCache<T> getCache(LeafReader reader) throws IOException
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.