Package com.orientechnologies.orient.core.sql.functions

Examples of com.orientechnologies.orient.core.sql.functions.OSQLFunctionRuntime.execute()


          projectionValue = ((OSQLFilterItemVariable) v).getValue(inputDocument, iValue, iContext);
        } else if (v instanceof OSQLFilterItemField)
          projectionValue = ((OSQLFilterItemField) v).getValue(inputDocument, iValue, iContext);
        else if (v instanceof OSQLFunctionRuntime) {
          final OSQLFunctionRuntime f = (OSQLFunctionRuntime) v;
          projectionValue = f.execute(inputDocument, inputDocument, iValue, iContext);
        } else
          projectionValue = v;

        if (projectionValue != null)
          if (projectionValue instanceof ORidBag)
View Full Code Here


          subQuery.getContext().setVariable("current", iRecord);
          varValue = ODatabaseRecordThreadLocal.INSTANCE.get().query(subQuery);
        } else if (letValue instanceof OSQLFunctionRuntime) {
          final OSQLFunctionRuntime f = (OSQLFunctionRuntime) letValue;
          if (f.getFunction().aggregateResults()) {
            f.execute(iRecord, iRecord, null, context);
            varValue = f.getFunction().getResult();
          } else
            varValue = f.execute(iRecord, iRecord, null, context);
        } else if (letValue instanceof String)
          varValue = ODocumentHelper.getFieldValue(iRecord, ((String) letValue).trim(), context);
View Full Code Here

          final OSQLFunctionRuntime f = (OSQLFunctionRuntime) letValue;
          if (f.getFunction().aggregateResults()) {
            f.execute(iRecord, iRecord, null, context);
            varValue = f.getFunction().getResult();
          } else
            varValue = f.execute(iRecord, iRecord, null, context);
        } else if (letValue instanceof String)
          varValue = ODocumentHelper.getFieldValue(iRecord, ((String) letValue).trim(), context);
        else
          varValue = letValue;
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.