use of io.crate.data.join.CombinedRow in project crate by crate.
the class HashInnerJoinBatchIteratorTest method testInnerHashJoinWithHashCollisions.
@Test
public void testInnerHashJoinWithHashCollisions() throws Exception {
Supplier<BatchIterator<Row>> batchIteratorSupplier = () -> new HashInnerJoinBatchIterator(leftIterator.get(), rightIterator.get(), mock(RowAccounting.class), new CombinedRow(1, 1), getCol0EqCol1JoinCondition(), getHashWithCollisions(), getHashWithCollisions(), () -> 5);
BatchIteratorTester tester = new BatchIteratorTester(batchIteratorSupplier);
tester.verifyResultAndEdgeCaseBehaviour(expectedResult);
}
use of io.crate.data.join.CombinedRow in project crate by crate.
the class HashInnerJoinBatchIteratorTest method testInnerHashJoinWithBlockSizeBiggerThanIteratorBatchSize.
@Test
public void testInnerHashJoinWithBlockSizeBiggerThanIteratorBatchSize() throws Exception {
Supplier<BatchIterator<Row>> batchIteratorSupplier = () -> new HashInnerJoinBatchIterator(leftIterator.get(), rightIterator.get(), mock(RowAccounting.class), new CombinedRow(1, 1), getCol0EqCol1JoinCondition(), getHashForLeft(), getHashForRight(), () -> 3);
BatchIteratorTester tester = new BatchIteratorTester(batchIteratorSupplier);
tester.verifyResultAndEdgeCaseBehaviour(expectedResult);
}
Aggregations