public Object expand(OExpression expression, String name, Object value, OCommandContext ctx, int recursion) { return expansion.apply(expression, value, ctx); }
return apply(expression, (OResult) input, ctx, recursion == null ? 0 : recursion.getValue().intValue()); return apply(expression, (OIdentifiable) input, ctx, recursion == null ? 0 : recursion.getValue().intValue()); return apply(expression, (Map) input, ctx, recursion == null ? 0 : recursion.getValue().intValue()); return ((Collection) input).stream().map(x -> apply(expression, x, ctx)).collect(Collectors.toList()); List result = new ArrayList(); while (iter.hasNext()) { result.add(apply(expression, iter.next(), ctx));
public Object execute(OIdentifiable iCurrentRecord, OCommandContext ctx) { Object result; if (all) { result = iCurrentRecord; } else { result = expression.execute(iCurrentRecord, ctx); } if (nestedProjection != null) { result = nestedProjection.apply(expression, result, ctx); } return convert(result); }
public Object execute(OResult iCurrentRecord, OCommandContext ctx) { Object result; if (all) { result = iCurrentRecord; } else { result = expression.execute(iCurrentRecord, ctx); } if (nestedProjection != null) { if (result instanceof ODocument && ((ODocument) result).isEmpty()) { ((ODocument) result).load(null); } result = nestedProjection.apply(expression, result, ctx); } return convert(result); }
Object val = item.convert(iRecord.getProperty(alias)); if (item.nestedProjection != null) { val = item.nestedProjection.apply(item.expression, val, iContext);