public class ShapeFieldCache<T extends org.locationtech.spatial4j.shape.Shape>
extends java.lang.Object
WARNING: This class holds the data in an extremely inefficient manner as all Points are in memory as objects and they are stored in many ArrayLists (one per document). So it works but doesn't scale. It will be replaced in the future.
Modifier and Type | Field and Description |
---|---|
int |
defaultLength |
Constructor and Description |
---|
ShapeFieldCache(int length,
int defaultLength) |
Modifier and Type | Method and Description |
---|---|
void |
add(int docid,
T s) |
java.util.List<T> |
getShapes(int docid) |
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.