Class BlockSet

java.lang.Object
io.trino.operator.scalar.BlockSet

public class BlockSet extends Object
A set of values stored in preexisting blocks. The data is not copied out of the blocks, and instead a direct reference is kept. This means that all data in a block is retained (including non-distinct values), so this works best when processing preexisting blocks in a single code block. Care should be taken when using this across multiple calls, as the memory will not be freed until the BlockSet is freed.

BlockSet does not support rehashing, so the maximum size must be known up front.