public abstract class ShapeFieldCacheProvider<T extends com.spatial4j.core.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) |
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-2015 Apache Software Foundation. All Rights Reserved.