public class CmdSelect {
void processSelect(String cmd, NoSqlEntityManager mgr) {
NoSqlTypedSession s = mgr.getTypedSession();
try {
QueryResult result = s.createQueryCursor(cmd, 100);
Cursor<List<TypedRow>> cursor = result.getAllViewsCursor();
processBatch(cursor, result.getViews());
} catch(ParseException e) {
Throwable childExc = e.getCause();
throw new InvalidCommand("Scalable-SQL command was invalid. Reason="+childExc.getMessage()+" AND you may want to add -v option to playcli to get more info", e);
}