while(true) {
Holder<IndexColumnInfo> nextFromCursor = rightResults.nextImpl();
if(nextFromCursor == null)
break;
IndexColumnInfo andedInfo = nextFromCursor.getValue();
ByteArray key1 = next.getPrimaryKey(leftView);
ByteArray key2 = andedInfo.getPrimaryKey(rightView);
if(pkToRightSide.size() < 500)
pkToRightSide.put(key2, andedInfo);
if(matchedResult == null && key1.equals(key2)) {
next.mergeResults(andedInfo);
matchedResult = new Holder<IndexColumnInfo>(next);