@Test public void testRowCountLimit() { QueryResult<OrderedRows<String, String, Long>> result = new IndexedSlicesQuery<String, String, Long>(keyspace, se, se, le) .addEqualsExpression("birthyear", 1975L) .addGteExpression("birthmonth", 4L) .addLteExpression("birthmonth", 6L) .setColumnNames("birthyear") .setColumnFamily(cf) .setStartKey("") .setRowCount(2) .execute(); assertEquals(2, result.get().getList().size()); }
.setRange(null, null, false, numCols).setRowCount(numRows);