Package org.apache.wayang.profiler.log
Class DynamicEstimationContext
java.lang.Object
org.apache.wayang.profiler.log.DynamicEstimationContext
- All Implemented Interfaces:
EstimationContext
EstimationContext implementation for DynamicLoadEstimators.-
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 TypeMethodDescriptiondoublegetDoubleProperty(String propertyKey, double fallback) Retrieve adouble-valued property in this context.Provide the inputCardinalityEstimates for theOperatorthat corresponds to this instance.intRetrieve the number of executions to be estimated.Provide the outputCardinalityEstimates for theOperatorthat 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, waitMethods inherited from interface org.apache.wayang.core.optimizer.costs.EstimationContext
getNormalizedEstimationContext
-
Constructor Details
-
DynamicEstimationContext
-
-
Method Details
-
getInputCardinalities
Description copied from interface:EstimationContextProvide the inputCardinalityEstimates for theOperatorthat corresponds to this instance.- Specified by:
getInputCardinalitiesin interfaceEstimationContext- Returns:
- the
CardinalityEstimates, which can containnulls
-
getOutputCardinalities
Description copied from interface:EstimationContextProvide the outputCardinalityEstimates for theOperatorthat corresponds to this instance.- Specified by:
getOutputCardinalitiesin interfaceEstimationContext- Returns:
- the
CardinalityEstimates, which can containnulls
-
getDoubleProperty
Description copied from interface:EstimationContextRetrieve adouble-valued property in this context.- Specified by:
getDoublePropertyin 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:EstimationContextRetrieve the number of executions to be estimated.- Specified by:
getNumExecutionsin interfaceEstimationContext- Returns:
- the number of executions.
-
getPropertyKeys
Description copied from interface:EstimationContextRetrieve the eligible property keys forEstimationContext.getDoubleProperty(String, double).- Specified by:
getPropertyKeysin interfaceEstimationContext- Returns:
- the property keys
-
getIndividual
-