Class ShapeFieldCacheProvider<T extends org.locationtech.spatial4j.shape.Shape>

  • Direct Known Subclasses:
    PointPrefixTreeFieldCacheProvider

    public abstract class ShapeFieldCacheProvider<T extends org.locationtech.spatial4j.shape.Shape>
    extends Object
    Provides access to a 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.

    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Field Detail

      • defaultSize

        protected final int defaultSize
      • shapeField

        protected final String shapeField
    • Constructor Detail

      • ShapeFieldCacheProvider

        public ShapeFieldCacheProvider​(String shapeField,
                                       int defaultSize)