Class GeometryLiteralIndex


  • public class GeometryLiteralIndex
    extends java.lang.Object
    • Constructor Detail

      • GeometryLiteralIndex

        public GeometryLiteralIndex()
    • Method Detail

      • clear

        public static final void clear()
        Empty the Geometry Literal Index.
      • setMaxSize

        public static final void setMaxSize​(int maxSize)
        Sets the maximum size of Geometry Literal Index.
        Parameters:
        maxSize - : use -1 for unlimited size
      • setExpiry

        public static final void setExpiry​(long expiryInterval)
        Sets the expiry time in milliseconds of the Geometry Literal Indexes, if active.
        Parameters:
        expiryInterval - : use 0 or negative for unlimited timeout
      • getPrimaryIndexSize

        public static final long getPrimaryIndexSize()
        Returns:
        Number of items in the primary index.
      • getSecondaryIndexSize

        public static final long getSecondaryIndexSize()
        Returns:
        Number of items in the secondary index.
      • isIndexActive

        public static boolean isIndexActive()
        Returns:
        True if index is active.
      • setIndexActive

        public static void setIndexActive​(boolean indexActive)
        Sets whether the index is active.
        Parameters:
        indexActive -
      • reset

        public static void reset​(int maxSize,
                                 long expiryInterval)
        Reset the indexes to the provided max size and expiry interval.
        All contents will be lost.
        Parameters:
        maxSize -
        expiryInterval -