Package com.complexible.stardog
Enum Class QueryPlanReuse
- All Implemented Interfaces:
Serializable,Comparable<QueryPlanReuse>,Constable
Options for configuring how Stardog will reuse query plans. Stardog answers queries by first generating an execution plan. Generating an optimal query plan is hard and
time-consuming so these plans are cached and reused for structurally equivalent queries; i.e. queries such that one can be transformed into another by replacing constants.
This enumeration defines different conditions under which a cached plan will be reused.
- Since:
- 4.0.5
- Version:
- 4.0.5
- Author:
- Evren Sirin
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways reuse cached query plans for structurally equivalent queries.Reuse cached query plans for structurally equivalent queries if the cardinality estimations of scans are similar.Never reuse cached query plans. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryPlanReuseReturns the enum constant of this class with the specified name.static QueryPlanReuse[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Always reuse cached query plans for structurally equivalent queries. -
NEVER
Never reuse cached query plans. This strategy degrades query answering performance significantly and should not be used except for debugging purposes. -
CARDINALITY
Reuse cached query plans for structurally equivalent queries if the cardinality estimations of scans are similar. This option is useful if the queries to a database involve constants with very different selectivities. If cached plans are always reused then the first query plan that is cached will be reused for all other queries that might not be optimal. Checking cardinality estimations first avoids this problem but introduces some slight overhead for query answering.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-