return new CursorForOr(leftView, leftResults, rightView, rightResults);
}
}
private DirectCursor<IndexColumnInfo> processRangeExpression(ExpressionNode root, Set<ViewInfo> alreadyJoinedViews) {
StateAttribute attr;
if(root.getType() == NoSqlLexer.BETWEEN) {
ExpressionNode grandChild = root.getChild(ChildSide.LEFT).getChild(ChildSide.LEFT);
attr = (StateAttribute) grandChild.getState();
} else if (root.getType() == NoSqlLexer.IN) {
ExpressionNode grandChild = root.getChild(ChildSide.LEFT);
attr = (StateAttribute) grandChild.getState();
} else {
attr = (StateAttribute) root.getChild(ChildSide.LEFT).getState();
}
DboColumnMeta info = attr.getColumnInfo();
ViewInfoImpl viewInfo = attr.getViewInfo();
ScanInfo scanInfo = createScanInfo(viewInfo, info);
alreadyJoinedViews.add(viewInfo);
if(info.isIndexed()) {
//its an indexed column