Class TypedSet
- java.lang.Object
-
- io.prestosql.operator.aggregation.TypedSet
-
public class TypedSet extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static io.airlift.units.DataSize
MAX_FUNCTION_MEMORY
-
Constructor Summary
Constructors Constructor Description TypedSet(Type elementType, BlockTypeOperators.BlockPositionEqual elementEqualOperator, BlockTypeOperators.BlockPositionIsDistinctFrom elementDistinctFromOperator, BlockTypeOperators.BlockPositionHashCode elementHashCodeOperator, BlockBuilder blockBuilder, int expectedSize, String functionName, boolean unboundedMemory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Block block, int position)
boolean
contains(Block block, int position)
static TypedSet
createDistinctTypedSet(Type elementType, BlockTypeOperators.BlockPositionIsDistinctFrom elementDistinctFromOperator, BlockTypeOperators.BlockPositionHashCode elementHashCodeOperator, int expectedSize, String functionName)
static TypedSet
createDistinctTypedSet(Type elementType, BlockTypeOperators.BlockPositionIsDistinctFrom elementDistinctFromOperator, BlockTypeOperators.BlockPositionHashCode elementHashCodeOperator, BlockBuilder blockBuilder, int expectedSize, String functionName)
static TypedSet
createEqualityTypedSet(Type elementType, BlockTypeOperators.BlockPositionEqual elementEqualOperator, BlockTypeOperators.BlockPositionHashCode elementHashCodeOperator, int expectedSize, String functionName)
static TypedSet
createEqualityTypedSet(Type elementType, BlockTypeOperators.BlockPositionEqual elementEqualOperator, BlockTypeOperators.BlockPositionHashCode elementHashCodeOperator, BlockBuilder blockBuilder, int expectedSize, String functionName, boolean unboundedMemory)
long
getRetainedSizeInBytes()
int
positionOf(Block block, int position)
int
size()
-
-
-
Constructor Detail
-
TypedSet
public TypedSet(Type elementType, BlockTypeOperators.BlockPositionEqual elementEqualOperator, BlockTypeOperators.BlockPositionIsDistinctFrom elementDistinctFromOperator, BlockTypeOperators.BlockPositionHashCode elementHashCodeOperator, BlockBuilder blockBuilder, int expectedSize, String functionName, boolean unboundedMemory)
-
-
Method Detail
-
createEqualityTypedSet
public static TypedSet createEqualityTypedSet(Type elementType, BlockTypeOperators.BlockPositionEqual elementEqualOperator, BlockTypeOperators.BlockPositionHashCode elementHashCodeOperator, int expectedSize, String functionName)
-
createEqualityTypedSet
public static TypedSet createEqualityTypedSet(Type elementType, BlockTypeOperators.BlockPositionEqual elementEqualOperator, BlockTypeOperators.BlockPositionHashCode elementHashCodeOperator, BlockBuilder blockBuilder, int expectedSize, String functionName, boolean unboundedMemory)
-
createDistinctTypedSet
public static TypedSet createDistinctTypedSet(Type elementType, BlockTypeOperators.BlockPositionIsDistinctFrom elementDistinctFromOperator, BlockTypeOperators.BlockPositionHashCode elementHashCodeOperator, int expectedSize, String functionName)
-
createDistinctTypedSet
public static TypedSet createDistinctTypedSet(Type elementType, BlockTypeOperators.BlockPositionIsDistinctFrom elementDistinctFromOperator, BlockTypeOperators.BlockPositionHashCode elementHashCodeOperator, BlockBuilder blockBuilder, int expectedSize, String functionName)
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()
-
contains
public boolean contains(Block block, int position)
-
add
public void add(Block block, int position)
-
size
public int size()
-
positionOf
public int positionOf(Block block, int position)
-
-