assertFalse(exec.isRangeScan(filters, rowAliasesMap, "Less Than"));
}
@Test
public void testIsRangeScanComposite3EqLtRight() throws CruxException {
RowAlias rowAlias = new RowAlias();
rowAlias.setId(1);
rowAlias.setAlias("alias");
RowAliasFilter rowFilter = new RowAliasFilter();
rowFilter.setId(0);
rowFilter.setFilterType(new FilterType(1, "Equals"));
rowFilter.setReport(new Report());
rowFilter.setRowAlias(rowAlias);
RowAlias rowAlias1 = new RowAlias();
rowAlias1.setId(2);
rowAlias1.setAlias("alias1");
RowAliasFilter rowFilter1 = new RowAliasFilter();
rowFilter1.setId(2);
rowFilter1.setFilterType(new FilterType(1, "Equals"));
rowFilter1.setReport(new Report());
rowFilter1.setRowAlias(rowAlias1);
RowAlias rowAlias2 = new RowAlias();
rowAlias2.setId(2);
rowAlias2.setAlias("alias2");
RowAliasFilter rowFilter2 = new RowAliasFilter();
rowFilter2.setId(2);
rowFilter2.setFilterType(new FilterType(2, "Less Than"));
rowFilter2.setReport(new Report());
rowFilter2.setRowAlias(rowAlias2);
ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
filters.add(rowFilter);
filters.add(rowFilter1);
filters.add(rowFilter2);
LinkedHashMap<String, RowAlias> rowAliasesMap = new LinkedHashMap<String, RowAlias>();
rowAliasesMap.put(rowAlias.getAlias(), rowAlias);
rowAliasesMap.put(rowAlias1.getAlias(), rowAlias1);
rowAliasesMap.put(rowAlias2.getAlias(), rowAlias2);
QueryExecutor exec = new QueryExecutor(null);
assertTrue(exec.isRangeScan(filters, rowAliasesMap, "Less Than"));
}