use of io.trino.type.BlockTypeOperators.BlockPositionEqual in project trino by trinodb.
the class TestValueStore method setUp.
@BeforeMethod(alwaysRun = true)
public void setUp() {
VarcharType type = VarcharType.createVarcharType(100);
BlockTypeOperators blockTypeOperators = new BlockTypeOperators(new TypeOperators());
BlockPositionEqual equalOperator = blockTypeOperators.getEqualOperator(type);
hashCodeOperator = blockTypeOperators.getHashCodeOperator(type);
BlockBuilder blockBuilder = type.createBlockBuilder(null, 100, 10);
valueStore = new ValueStore(type, equalOperator, 100, blockBuilder);
valueStoreSmall = new ValueStore(type, equalOperator, 1, blockBuilder);
block = BlockAssertions.createStringsBlock("a", "b", "c", "d");
}
Aggregations