Package io.prestosql.operator
Class HashCollisionsInfo
- java.lang.Object
-
- io.prestosql.operator.HashCollisionsInfo
-
- All Implemented Interfaces:
OperatorInfo
,Mergeable<HashCollisionsInfo>
public class HashCollisionsInfo extends Object implements Mergeable<HashCollisionsInfo>, OperatorInfo
-
-
Field Summary
Fields Modifier and Type Field Description static String
WEIGHTED_EXPECTED_HASH_COLLISIONS
static String
WEIGHTED_HASH_COLLISIONS_PROPERTY
static String
WEIGHTED_SUM_SQUARED_HASH_COLLISIONS
-
Constructor Summary
Constructors Constructor Description HashCollisionsInfo(double weightedHashCollisions, double weightedSumSquaredHashCollisions, double weightedExpectedHashCollisions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HashCollisionsInfo
createHashCollisionsInfo(long inputPositionsCount, double hashCollisionsCount, double expectedHashCollisions)
double
getWeightedExpectedHashCollisions()
double
getWeightedHashCollisions()
double
getWeightedSumSquaredHashCollisions()
HashCollisionsInfo
mergeWith(HashCollisionsInfo other)
Merges the current state with the state of the other instance, and returns the merged state.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.prestosql.operator.OperatorInfo
isFinal
-
-
-
-
Field Detail
-
WEIGHTED_HASH_COLLISIONS_PROPERTY
public static final String WEIGHTED_HASH_COLLISIONS_PROPERTY
- See Also:
- Constant Field Values
-
WEIGHTED_SUM_SQUARED_HASH_COLLISIONS
public static final String WEIGHTED_SUM_SQUARED_HASH_COLLISIONS
- See Also:
- Constant Field Values
-
WEIGHTED_EXPECTED_HASH_COLLISIONS
public static final String WEIGHTED_EXPECTED_HASH_COLLISIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
createHashCollisionsInfo
public static HashCollisionsInfo createHashCollisionsInfo(long inputPositionsCount, double hashCollisionsCount, double expectedHashCollisions)
-
getWeightedSumSquaredHashCollisions
public double getWeightedSumSquaredHashCollisions()
-
getWeightedHashCollisions
public double getWeightedHashCollisions()
-
getWeightedExpectedHashCollisions
public double getWeightedExpectedHashCollisions()
-
mergeWith
public HashCollisionsInfo mergeWith(HashCollisionsInfo other)
Description copied from interface:Mergeable
Merges the current state with the state of the other instance, and returns the merged state.- Specified by:
mergeWith
in interfaceMergeable<HashCollisionsInfo>
-
-