rantav/hector — Issue #428: Method getAsCount() on CqlRows doesn't work
Author: damienlepage
Created: 2012-02-27 21:46:38+00:00
State: open

The method CqlRows.getAsCount() doesn't work (tested with hector 1.0-2/1.0-3 and Cassandra 1.0.7)

This method is mentioned in the following documentation:
https://github.com/rantav/hector/wiki/Using-CQL

However the method RowsImpl.getCount() returns the count.

CqlQuery cqlQuery = new CqlQuery(keyspace, se, se, le);
cqlQuery.setQuery("select * from Stars");
QueryResult> result = cqlQuery.execute();
System.out.println("getAsCount=" + result.get().getAsCount());
System.out.println("getCount=" + result.get().getCount());

Gives the output:

getAsCount=0
getCount=4