Package org.apache.wayang.profiler.log
Class DynamicEstimationContext
- java.lang.Object
-
- org.apache.wayang.profiler.log.DynamicEstimationContext
-
- All Implemented Interfaces:
EstimationContext
public class DynamicEstimationContext extends java.lang.Object implements EstimationContext
EstimationContextimplementation forDynamicLoadEstimators.
-
-
Field Summary
-
Fields inherited from interface org.apache.wayang.core.optimizer.costs.EstimationContext
defaultSerializer
-
-
Constructor Summary
Constructors Constructor Description DynamicEstimationContext(Individual individual, EstimationContext wrappedEstimationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDoubleProperty(java.lang.String propertyKey, double fallback)Retrieve adouble-valued property in this context.IndividualgetIndividual()CardinalityEstimate[]getInputCardinalities()Provide the inputCardinalityEstimates for theOperatorthat corresponds to this instance.intgetNumExecutions()Retrieve the number of executions to be estimated.CardinalityEstimate[]getOutputCardinalities()Provide the outputCardinalityEstimates for theOperatorthat corresponds to this instance.java.util.Collection<java.lang.String>getPropertyKeys()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 Detail
-
DynamicEstimationContext
public DynamicEstimationContext(Individual individual, EstimationContext wrappedEstimationContext)
-
-
Method Detail
-
getInputCardinalities
public CardinalityEstimate[] 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
public CardinalityEstimate[] 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
public double getDoubleProperty(java.lang.String propertyKey, double fallback)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
public java.util.Collection<java.lang.String> getPropertyKeys()
Description copied from interface:EstimationContextRetrieve the eligible property keys forEstimationContext.getDoubleProperty(String, double).- Specified by:
getPropertyKeysin interfaceEstimationContext- Returns:
- the property keys
-
getIndividual
public Individual getIndividual()
-
-