Class QueryPlanProperty
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.info.QueryPlanProperty
Represents a particular property of a query plan as determined and
used during query planning. Typical examples of such properties are
the (estimated) cardinality of the query result produced by the plan
and the (estimated) number of requests that will be issued when running
the plan.
In addition to its type (as captured by the QueryPlanProperty.Type class) and its
value, each such property has a QueryPlanProperty.Quality score which indicates
how certain the value is.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic QueryPlanProperty.TypeA property of this type specifies the (potentially estimated) number of solution mappings that can be expected from the corresponding query plan.static QueryPlanProperty.TypeA property of this type specifies the (potentially estimated) maximum number of solution mappings that can be expected from the corresponding query plan.static QueryPlanProperty.TypeA property of this type specifies the (potentially estimated) minimum number of solution mappings that can be expected from the corresponding query plan.protected final QueryPlanProperty.Qualityprotected final QueryPlanProperty.Typeprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionQueryPlanProperty(QueryPlanProperty.Type type, int value, QueryPlanProperty.Quality quality) Creates a newQueryPlanPropertywith the given type, value, and quality score. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryPlanPropertycardinality(int value, QueryPlanProperty.Quality quality) Creates a property of typeCARDINALITY.static QueryPlanPropertyCreates a copy of the given property (its type and its value) with a reduced quality score.Returns the quality score of this property.getType()Returns the type of this property.intgetValue()Returns the value of this property.static QueryPlanPropertymaxCardinality(int value, QueryPlanProperty.Quality quality) Creates a property of typeMAX_CARDINALITY.static QueryPlanPropertyminCardinality(int value, QueryPlanProperty.Quality quality) Creates a property of typeMIN_CARDINALITY.toString()
-
Field Details
-
CARDINALITY
A property of this type specifies the (potentially estimated) number of solution mappings that can be expected from the corresponding query plan. -
MAX_CARDINALITY
A property of this type specifies the (potentially estimated) maximum number of solution mappings that can be expected from the corresponding query plan. -
MIN_CARDINALITY
A property of this type specifies the (potentially estimated) minimum number of solution mappings that can be expected from the corresponding query plan. -
type
-
value
protected final int value -
quality
-
-
Constructor Details
-
QueryPlanProperty
Creates a newQueryPlanPropertywith the given type, value, and quality score.- Parameters:
type- - the type of the property to be createdvalue- - the value of the property to be createdquality- - the quality score of the property to be created
-
-
Method Details
-
cardinality
Creates a property of typeCARDINALITY.- Parameters:
value- - the value to be used for the created propertyquality- - the quality of the given value- Returns:
- the created property
-
maxCardinality
Creates a property of typeMAX_CARDINALITY.- Parameters:
value- - the value to be used for the created propertyquality- - the quality of the given value- Returns:
- the created property
-
minCardinality
Creates a property of typeMIN_CARDINALITY.- Parameters:
value- - the value to be used for the created propertyquality- - the quality of the given value- Returns:
- the created property
-
copyWithReducedQuality
Creates a copy of the given property (its type and its value) with a reduced quality score.- Parameters:
p- - the property to be copied- Returns:
- the copy
-
getType
Returns the type of this property.- Returns:
- the type of this property
-
getValue
public int getValue()Returns the value of this property.- Returns:
- the value of this property
-
getQuality
Returns the quality score of this property.- Returns:
- the quality score of this property
-
toString
-