Class EvaluationStrategies
- java.lang.Object
-
- org.eclipse.rdf4j.query.algebra.evaluation.util.EvaluationStrategies
-
@Deprecated(forRemoval=true, since="4.0.0") public class EvaluationStrategies extends java.lang.Object
Deprecated, for removal: This API element is subject to removal in a future version.Registry for currently activeEvaluationStrategy
objects. The internal registry uses soft references to allow entries to be garbage-collected when no longer used. Currently, the primary purpose of this is to support (de)serialization of objects (over the lifetime of the VM) that depend on an EvaluationStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private static com.google.common.cache.Cache<java.util.UUID,EvaluationStrategy>
registry
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
Constructors Modifier Constructor Description private
EvaluationStrategies()
Deprecated, for removal: This API element is subject to removal in a future version.Prevent instantiation: util class
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EvaluationStrategy
get(java.util.UUID key)
Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the EvaluationStrategy registered with the supplied key.static java.util.UUID
getKey(EvaluationStrategy strategy)
Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the registry key for the given EvaluationStrategystatic java.util.UUID
register(EvaluationStrategy strategy)
Deprecated, for removal: This API element is subject to removal in a future version.Add a strategy to the registry and returns the registry key.
-
-
-
Field Detail
-
registry
private static final com.google.common.cache.Cache<java.util.UUID,EvaluationStrategy> registry
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
get
public static EvaluationStrategy get(java.util.UUID key)
Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the EvaluationStrategy registered with the supplied key.- Parameters:
key
- the key- Returns:
- the registered EvaluationStrategy, or
null
if no matching EvaluationStrategy can be found.
-
getKey
public static java.util.UUID getKey(EvaluationStrategy strategy)
Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the registry key for the given EvaluationStrategy- Parameters:
strategy
- the EvaluationStrategy for which to retrieve the registry key- Returns:
- the registry key with which the supplied strategy can be retrieved, or
null
if the supplied strategy is not in the registry.
-
register
public static java.util.UUID register(EvaluationStrategy strategy)
Deprecated, for removal: This API element is subject to removal in a future version.Add a strategy to the registry and returns the registry key. If the strategy is already present, the operation simply returns the key with which it is currently registered.- Parameters:
strategy
- the EvaluationStrategy to register- Returns:
- the key with which the strategy is registered.
-
-