Examples of OCommandExecutorSQLSelect


Examples of com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect

         result = dManager.sendRequest(getName(), involvedClusters, nodes, task, EXECUTION_MODE.RESPONSE);

         if (result instanceof Map) {
           if (executor instanceof OCommandExecutorSQLDelegate
               && ((OCommandExecutorSQLDelegate) executor).getDelegate() instanceof OCommandExecutorSQLSelect) {
             final OCommandExecutorSQLSelect cmd = (OCommandExecutorSQLSelect) ((OCommandExecutorSQLDelegate) executor)
                 .getDelegate();

             if (((Map<String, Object>) result).size() == 1)
               // USE THE COLLECTION DIRECTLY
               result = ((Map<String, Object>) result).values().iterator().next();
             else {
               if (cmd.isAnyFunctionAggregates()) {
                 final Map<String, Object> proj = cmd.getProjections();

                 final List<Object> list = new ArrayList<Object>();
                 final ODocument doc = new ODocument();
                 list.add(doc);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.