@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); return spaces + "+ RETURN $paths"; }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); return spaces + "+ LET (for each record)\n" + spaces + " " + varname + " = " + expression; }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); return spaces + "+ UNROLL $elements"; } }
@Override public String prettyPrint(int depth, int indent) { StringBuilder result = new StringBuilder(); result.append(OExecutionStepInternal.getIndent(depth, indent) + "+ GUARANTEE FOR ZERO COUNT "); return result.toString(); } }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); StringBuilder result = new StringBuilder(); result.append(spaces); result.append("+ BATCH COMMIT EVERY " + batchSize); return result.toString(); } }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); StringBuilder result = new StringBuilder(); result.append(spaces); result.append("+ SAVE RECORD"); if (cluster != null) { result.append("\n"); result.append(spaces); result.append(" on cluster " + cluster); } return result.toString(); }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); StringBuilder result = new StringBuilder(); result.append(spaces); result.append("+ CHECK SAFE DELETE"); if (profilingEnabled) { result.append(" (" + getCostFormatted() + ")"); } return result.toString(); }
@Override public String prettyPrint(int depth, int indent) { StringBuilder builder = new StringBuilder(); String ind = OExecutionStepInternal.getIndent(depth, indent); builder.append(ind); builder.append("+ FETCH FROM SUBQUERY \n"); builder.append(subExecuitonPlan.prettyPrint(depth + 1, indent)); return builder.toString(); } }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); String result = spaces + "+ FETCH STORAGE METADATA"; if (profilingEnabled) { result += " (" + getCostFormatted() + ")"; } return result; }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); StringBuilder result = new StringBuilder(); result.append(spaces); result.append("+ FETCH NEW RECORDS FROM CURRENT TRANSACTION SCOPE (if any)"); if (profilingEnabled) { result.append(" (" + getCostFormatted() + ")"); } return result.toString(); }
@Override public String prettyPrint(int depth, int indent) { String result = OExecutionStepInternal.getIndent(depth, indent) + "+ UNWRAP PREVIOUS VALUE"; if (profilingEnabled) { result += " (" + getCostFormatted() + ")"; } return result; }
@Override public String prettyPrint(int depth, int indent) { String result = OExecutionStepInternal.getIndent(depth, indent) + "+ CONVERT TO UPDATABLE ITEM"; if (profilingEnabled) { result += " (" + getCostFormatted() + ")"; } return result; }
@Override public String prettyPrint(int depth, int indent) { String result = OExecutionStepInternal.getIndent(depth, indent) + "+ CONVERT TO REGULAR RESULT ITEM"; if (profilingEnabled) { result += " (" + getCostFormatted() + ")"; } return result; }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); String result = spaces + "+ FETCH DATABASE METADATA"; if (profilingEnabled) { result += " (" + getCostFormatted() + ")"; } return result; }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); StringBuilder result = new StringBuilder(); result.append(spaces); result.append("+ NOT (\n"); this.subSteps.forEach(x -> result.append(x.prettyPrint(depth + 1, indent)).append("\n")); result.append(spaces); result.append(" )"); return result.toString(); }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); String result = spaces + "+ EXPAND"; if (profilingEnabled) { result += " (" + getCostFormatted() + ")"; } return result; }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); StringBuilder result = new StringBuilder(); result.append(spaces); result.append("+ "); result.append(statement.toString()); return result.toString(); }
@Override public String prettyPrint(int depth, int indent) { StringBuilder result = new StringBuilder(); result.append(OExecutionStepInternal.getIndent(depth, indent) + "+ FILTER ITEMS WHERE "); if (profilingEnabled) { result.append(" (" + getCostFormatted() + ")"); } result.append("\n"); result.append(OExecutionStepInternal.getIndent(depth, indent)); result.append(" "); result.append(whereClause.toString()); return result.toString(); }
@Override public String prettyPrint(int depth, int indent) { if (isOrderAsc()) { return OExecutionStepInternal.getIndent(depth, indent) + "+ FETCH FROM INDEX VAUES ASC " + index.getName(); } else { return OExecutionStepInternal.getIndent(depth, indent) + "+ FETCH FROM INDEX VAUES DESC " + index.getName(); } }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); String result = spaces + "+ CALCULATE AGGREGATE PROJECTIONS"; if (profilingEnabled) { result += " (" + getCostFormatted() + ")"; } result += "\n" + spaces + " " + projection.toString() + "" + (groupBy == null ? "" : (spaces + "\n " + groupBy.toString())); return result; }