Package org.apache.lucene.spatial.util
Class ShapeFieldCache<T extends Shape>
- java.lang.Object
-
- org.apache.lucene.spatial.util.ShapeFieldCache<T>
-
public class ShapeFieldCache<T extends Shape> extends Object
Bounded Cache of Shapes associated with docIds. Note, multiple Shapes can be associated with a given docId.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.
-
-
Field Summary
Fields Modifier and Type Field Description intdefaultLength
-
Constructor Summary
Constructors Constructor Description ShapeFieldCache(int length, int defaultLength)
-