Module org.apache.jena.geosparql
Class GeometryLiteralIndex
java.lang.Object
org.apache.jena.geosparql.implementation.index.GeometryLiteralIndex
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidclear()Empty the Geometry Literal Index.static final longstatic final longstatic booleanstatic voidreset(int maxSize, long expiryInterval) Reset the indexes to the provided max size and expiry interval.
All contents will be lost.static final GeometryWrapperretrieve(String geometryLiteral, GeometryDatatype geometryDatatype, GeometryLiteralIndex.GeometryIndex targetIndex) static voidsetIndexActive(boolean indexActive) Sets whether the index is active.
-
Constructor Details
-
GeometryLiteralIndex
public GeometryLiteralIndex()
-
-
Method Details
-
retrieve
public static final GeometryWrapper retrieve(String geometryLiteral, GeometryDatatype geometryDatatype, GeometryLiteralIndex.GeometryIndex targetIndex) -
clear
public static final void clear()Empty the Geometry Literal Index. -
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-
-