Package com.illumon.iris.db.v2.by
Class AggregationControl
java.lang.Object
com.illumon.iris.db.v2.by.AggregationControl
@VisibleForTesting public class AggregationControl extends Object
Stateless "control" class for giving external code (e.g. unit tests) knobs to turn w.r.t. to how aggregations
should be processed.
-
Field Summary
Fields Modifier and Type Field Description static AggregationControl
DEFAULT
static AggregationControl
DEFAULT_FOR_OPERATOR
-
Constructor Summary
Constructors Constructor Description AggregationControl()
-
Method Summary
Modifier and Type Method Description boolean
considerGrouping(Table inputTable, ColumnSource<?>[] sources)
double
getMaximumLoadFactor()
double
getTargetLoadFactor()
int
initialHashTableSize(Table inputTable)
boolean
shouldProbeShift(long shiftSize, int numStates)
-
Field Details
-
Constructor Details
-
AggregationControl
public AggregationControl()
-
-
Method Details
-
initialHashTableSize
-
getTargetLoadFactor
public double getTargetLoadFactor() -
getMaximumLoadFactor
public double getMaximumLoadFactor() -
considerGrouping
-
shouldProbeShift
public boolean shouldProbeShift(long shiftSize, int numStates)
-