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
EstimationContext
implementation forDynamicLoadEstimator
s.
-
-
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 double
getDoubleProperty(java.lang.String propertyKey, double fallback)
Retrieve adouble
-valued property in this context.Individual
getIndividual()
CardinalityEstimate[]
getInputCardinalities()
Provide the inputCardinalityEstimate
s for theOperator
that corresponds to this instance.int
getNumExecutions()
Retrieve the number of executions to be estimated.CardinalityEstimate[]
getOutputCardinalities()
Provide the outputCardinalityEstimate
s for theOperator
that 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: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
public CardinalityEstimate[] 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
public double getDoubleProperty(java.lang.String propertyKey, double fallback)
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
public java.util.Collection<java.lang.String> 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
public Individual getIndividual()
-
-