Package org.apache.wayang.profiler.log
Class DynamicEstimationContext
java.lang.Object
org.apache.wayang.profiler.log.DynamicEstimationContext
- All Implemented Interfaces:
EstimationContext
EstimationContext
implementation for DynamicLoadEstimator
s.-
Field Summary
Fields inherited from interface org.apache.wayang.core.optimizer.costs.EstimationContext
defaultSerializer
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicEstimationContext
(Individual individual, EstimationContext wrappedEstimationContext) -
Method Summary
Modifier and TypeMethodDescriptiondouble
getDoubleProperty
(String propertyKey, double fallback) Retrieve adouble
-valued property in this context.Provide the inputCardinalityEstimate
s for theOperator
that corresponds to this instance.int
Retrieve the number of executions to be estimated.Provide the outputCardinalityEstimate
s for theOperator
that corresponds to this instance.Retrieve the eligible property keys forEstimationContext.getDoubleProperty(String, double)
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wayang.core.optimizer.costs.EstimationContext
getNormalizedEstimationContext
-
Constructor Details
-
DynamicEstimationContext
-
-
Method Details
-
getInputCardinalities
Description copied from interface:EstimationContext
Provide the inputCardinalityEstimate
s for theOperator
that corresponds to this instance.- Specified by:
getInputCardinalities
in interfaceEstimationContext
- Returns:
- the
CardinalityEstimate
s, which can containnull
s
-
getOutputCardinalities
Description copied from interface:EstimationContext
Provide the outputCardinalityEstimate
s for theOperator
that corresponds to this instance.- Specified by:
getOutputCardinalities
in interfaceEstimationContext
- Returns:
- the
CardinalityEstimate
s, which can containnull
s
-
getDoubleProperty
Description copied from interface:EstimationContext
Retrieve adouble
-valued property in this context.- Specified by:
getDoubleProperty
in interfaceEstimationContext
- Parameters:
propertyKey
- the key for the propertyfallback
- the value to use if the property could not be delivered- Returns:
- the property value or
fallback
-
getNumExecutions
public int getNumExecutions()Description copied from interface:EstimationContext
Retrieve the number of executions to be estimated.- Specified by:
getNumExecutions
in interfaceEstimationContext
- Returns:
- the number of executions.
-
getPropertyKeys
Description copied from interface:EstimationContext
Retrieve the eligible property keys forEstimationContext.getDoubleProperty(String, double)
.- Specified by:
getPropertyKeys
in interfaceEstimationContext
- Returns:
- the property keys
-
getIndividual
-