@Override public QueryResponseWrapper query(ParsedQuery query) throws IndexParseException {
  ResultSet results=session.execute(generateQueryStatement(query,-1));
  ArrayList<Document> toReturn=new ArrayList<>();
  Iterator<Row> ite=results.iterator();
  while (ite.hasNext()) {
    Row row=ite.next();
    toReturn.add(DocumentPersistanceUtils.marshalRow(row));
  }
  return new QueryResponseWrapper(toReturn,0l);
}

@ Override public QueryResponseWrapper query ( ParsedQuery query ) throws IndexParseException { ResultSet results = session . execute ( generateQueryStatement ( query , - 1 ) ) ; ArrayList < Document > toReturn = new ArrayList < > ( ) ; Iterator < Row > ite = results . iterator ( ) ; while ( ite . hasNext ( ) ) { Row row = ite . next ( ) ; toReturn . add ( DocumentPersistanceUtils . marshalRow ( row ) ) ; } return new QueryResponseWrapper ( toReturn , 0l ) ; }
do a query without limit or offset .
