@Override public OExecutionStep copy(OCommandContext ctx) { return new CheckClassTypeStep(targetClass, parentClass, ctx, profilingEnabled); }
@Override public String prettyPrint(int depth, int indent) { String spaces = OExecutionStepInternal.getIndent(depth, indent); StringBuilder result = new StringBuilder(); result.append(spaces); result.append("+ CHECK CLASS HIERARCHY"); if (profilingEnabled) { result.append(" (" + getCostFormatted() + ")"); } result.append("\n"); result.append(" " + this.parentClass); return result.toString(); }
@Override public OResultSet syncPull(OCommandContext ctx, int nRecords) throws OTimeoutException { getPrev().ifPresent(x -> x.syncPull(ctx, nRecords)); long begin = profilingEnabled ? System.nanoTime() : 0; try {
private void handleCheckType(OInsertExecutionPlan result, OCommandContext ctx, boolean profilingEnabled) { if (targetClass != null) { result.chain(new CheckClassTypeStep(targetClass.getStringValue(), "E", ctx, profilingEnabled)); } }
private void handleCheckType(OInsertExecutionPlan result, OCommandContext ctx, boolean profilingEnabled) { if (targetClass != null) { result.chain(new CheckClassTypeStep(targetClass.getStringValue(), "V", ctx, profilingEnabled)); } if (targetClusterName != null) { result.chain(new CheckClusterTypeStep(targetClusterName.getStringValue(), "V", ctx, profilingEnabled)); } if (targetCluster != null) { result.chain(new CheckClusterTypeStep(targetCluster, "V", ctx, profilingEnabled)); } } }