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

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


      return ((OSQLFilterCondition) iValue).evaluate(iRecord);

    if (iValue instanceof OSQLFunctionRuntime) {
      // STATELESS FUNCTION: EXECUTE IT
      final OSQLFunctionRuntime f = (OSQLFunctionRuntime) iValue;
      return f.execute(iRecord);
    }

    // SIMPLE VALUE: JUST RETURN IT
    return iValue;
  }
View Full Code Here


        if (projection.getValue() instanceof OSQLFilterItemField)
          value = ((OSQLFilterItemField) projection.getValue()).getValue(doc);
        else if (projection.getValue() instanceof OSQLFunctionRuntime) {
          final OSQLFunctionRuntime f = (OSQLFunctionRuntime) projection.getValue();
          canExcludeResult = f.filterResult();
          value = f.execute(doc);
        } else
          value = projection.getValue();

        if (value != null)
          result.field(projection.getKey(), value);
View Full Code Here

        if (projection.getValue() instanceof OSQLFilterItemField)
          value = ((OSQLFilterItemField) projection.getValue()).getValue(doc);
        else if (projection.getValue() instanceof OSQLFunctionRuntime) {
          final OSQLFunctionRuntime f = (OSQLFunctionRuntime) projection.getValue();
          canExcludeResult = f.filterResult();
          value = f.execute(doc);
        } else
          value = projection.getValue();

        if (value != null)
          result.field(projection.getKey(), value);
View Full Code Here

      return ((OSQLFilterCondition) iValue).evaluate(iRecord);

    if (iValue instanceof OSQLFunctionRuntime) {
      // STATELESS FUNCTION: EXECUTE IT
      final OSQLFunctionRuntime f = (OSQLFunctionRuntime) iValue;
      return f.execute(iRecord);
    }

    // SIMPLE VALUE: JUST RETURN IT
    return iValue;
  }
View Full Code Here

      return ((OSQLFilterCondition) iValue).evaluate(iRecord);

    if (iValue instanceof OSQLFunctionRuntime) {
      // STATELESS FUNCTION: EXECUTE IT
      final OSQLFunctionRuntime f = (OSQLFunctionRuntime) iValue;
      return f.execute(iRecord);
    }

    // SIMPLE VALUE: JUST RETURN IT
    return iValue;
  }
View Full Code Here

      for (Entry<String, Object> projection : projections.entrySet()) {
        if (projection.getValue() instanceof OSQLFilterItemField)
          value = ((OSQLFilterItemField) projection.getValue()).getValue(iRecord);
        else if (projection.getValue() instanceof OSQLFunctionRuntime) {
          final OSQLFunctionRuntime f = (OSQLFunctionRuntime) projection.getValue();
          value = f.execute(iRecord);
        } else
          value = projection.getValue();

        result.field(projection.getKey(), value);
      }
View Full Code Here

      return ((OSQLFilterCondition) iValue).evaluate(iRecord);

    if (iValue instanceof OSQLFunctionRuntime) {
      // STATELESS FUNCTION: EXECUTE IT
      final OSQLFunctionRuntime f = (OSQLFunctionRuntime) iValue;
      return f.execute(iRecord);
    }

    // SIMPLE VALUE: JUST RETURN IT
    return iValue;
  }
View Full Code Here

        if (projection.getValue() instanceof OSQLFilterItemField)
          value = ((OSQLFilterItemField) projection.getValue()).getValue(doc);
        else if (projection.getValue() instanceof OSQLFunctionRuntime) {
          final OSQLFunctionRuntime f = (OSQLFunctionRuntime) projection.getValue();
          canExcludeResult = f.filterResult();
          value = f.execute(doc);
        } else
          value = projection.getValue();

        if (value != null)
          result.field(projection.getKey(), value);
View Full Code Here

        final String stringValue = currentValue.toString();
        result = stringValue.substring(offset < stringValue.length() ? stringValue.length() - offset : 0);
      } else {
        final OSQLFunctionRuntime f = OSQLHelper.getFunction(null, iFunction);
        if (f != null)
          result = f.execute(currentRecord, currentRecord, null, iContext);
      }
    }

    return result;
  }
View Full Code Here

      return ((OSQLFilterCondition) iValue).evaluate(iCurrentRecord, iCurrentResult, iContext);

    if (iValue instanceof OSQLFunctionRuntime) {
      // STATELESS FUNCTION: EXECUTE IT
      final OSQLFunctionRuntime f = (OSQLFunctionRuntime) iValue;
      return f.execute(iCurrentRecord, iCurrentRecord, iCurrentResult, iContext);
    }

    final Iterable<?> multiValue = OMultiValue.getMultiValueIterable(iValue);

    if (multiValue != null) {
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.