@Override public String toString() { return getClass().getSimpleName() + " - " + getName(); } }
@Override public String toString() { return getClass().getSimpleName() + " - " + getName(); } }
@Override public void postVisit(final Operator contract) { final List<List<Operator>> inputs = OperatorUtil.getInputs(contract); for (int index = 0; index < inputs.size(); index++) if (inputs.get(index).isEmpty()) inputs.get(index).add( GenericTestPlan.createDefaultSource(String.format("%s-input%d", contract.getName(), index), null)); OperatorUtil.setInputs(contract, inputs); }
@Override public String toString() { StringBuilder bld = new StringBuilder(); bld.append(getName()); bld.append(" (").append(getPactContract().getName()).append(") "); int i = 1; for (PactConnection conn : getIncomingConnections()) { bld.append('(').append(i++).append(":").append(conn.getShipStrategy() == null ? "null" : conn.getShipStrategy().name()).append(')'); } return bld.toString(); }
@Override public String toString() { StringBuilder bld = new StringBuilder(); bld.append(getName()); bld.append(" (").append(getPactContract().getName()).append(") "); int i = 1; for (PactConnection conn : getIncomingConnections()) { bld.append('(').append(i++).append(":").append(conn.getShipStrategy() == null ? "null" : conn.getShipStrategy().name()).append(')'); } return bld.toString(); }
public String toString() { StringBuilder buf = new StringBuilder(50); buf.append("Connection: "); if (this.source == null) { buf.append("null"); } else { buf.append(this.source.getPactContract().getName()); buf.append('(').append(this.source.getName()).append(')'); } buf.append(" -> "); if (this.shipStrategy != null) { buf.append('['); buf.append(this.shipStrategy.name()); buf.append(']').append(' '); } if (this.target == null) { buf.append("null"); } else { buf.append(this.target.getPactContract().getName()); buf.append('(').append(this.target.getName()).append(')'); } return buf.toString(); } }
@Override public String toString() { return this.template.getName() + " \"" + getPactContract().getName() + "\" : " + this.driverStrategy + " [[ " + this.globalProps + " ]] [[ " + this.localProps + " ]]"; }
@Override public String toString() { return this.template.getName() + " \"" + getPactContract().getName() + "\" : " + this.driverStrategy + " [[ " + this.globalProps + " ]] [[ " + this.localProps + " ]]"; }
private Operator replaceWithDefaultOutput(final Operator contract) { final FileDataSink defaultSink = GenericTestPlan.createDefaultSink(contract.getName() + "-output", null); defaultSink.addInput(contract); return defaultSink; } }
public String toString() { StringBuilder buf = new StringBuilder(50); buf.append("Connection: "); if (this.source == null) { buf.append("null"); } else { buf.append(this.source.getPactContract().getName()); buf.append('(').append(this.source.getName()).append(')'); } buf.append(" -> "); if (this.shipStrategy != null) { buf.append('['); buf.append(this.shipStrategy.name()); buf.append(']').append(' '); } if (this.target == null) { buf.append("null"); } else { buf.append(this.target.getPactContract().getName()); buf.append('(').append(this.target.getName()).append(')'); } return buf.toString(); } }
private TypeSerializerFactory<?> createSerializer(T schema, PlanNode node) { try { return createSerializer(schema); } catch (MissingFieldTypeInfoException e) { throw new CompilerPostPassException("Missing type information while creating serializer for '" + node.getPactContract().getName() + "'."); } }
private TypeSerializerFactory<?> createSerializer(T schema, PlanNode node) { try { return createSerializer(schema); } catch (MissingFieldTypeInfoException e) { throw new CompilerPostPassException("Missing type information while creating serializer for '" + node.getPactContract().getName() + "'."); } }
@Override public boolean preVisit(Operator<?> visitable) { if (this.seen.add(visitable)) { // add to the map final String name = visitable.getName(); List<Operator<?>> list = this.map.get(name); if (list == null) { list = new ArrayList<Operator<?>>(2); this.map.put(name, list); } list.add(visitable); // recurse into bulk iterations if (visitable instanceof BulkIteration) { ((BulkIteration) visitable).getNextPartialSolution().accept(this); } else if (visitable instanceof DeltaIteration) { ((DeltaIteration) visitable).getSolutionSetDelta().accept(this); ((DeltaIteration) visitable).getNextWorkset().accept(this); } return true; } else { return false; } }
String name = c.getName();
private void addSchemaToSchema(T sourceSchema, T targetSchema, OptimizerNode optNode, int input) { try { for (Map.Entry<Integer, X> entry : sourceSchema) { Integer pos = entry.getKey(); if (optNode.isFieldConstant(input, pos)) { targetSchema.addType(pos, entry.getValue()); } } } catch (ConflictingFieldTypeInfoException e) { throw new CompilerPostPassException("Conflicting type information for field " + e.getFieldNumber() + " in node '" + optNode.getPactContract().getName() + "' propagated from successor node. " + "Conflicting types: " + e.getPreviousType() + " and " + e.getNewType() + ". Most probable cause: Invalid constant field annotations."); } }
private void addSchemaToSchema(T sourceSchema, T targetSchema, OptimizerNode optNode, int input) { try { for (Map.Entry<Integer, X> entry : sourceSchema) { Integer pos = entry.getKey(); if (optNode.isFieldConstant(input, pos)) { targetSchema.addType(pos, entry.getValue()); } } } catch (ConflictingFieldTypeInfoException e) { throw new CompilerPostPassException("Conflicting type information for field " + e.getFieldNumber() + " in node '" + optNode.getPactContract().getName() + "' propagated from successor node. " + "Conflicting types: " + e.getPreviousType() + " and " + e.getNewType() + ". Most probable cause: Invalid constant field annotations."); } }
final long mib = mem >> 20; LOG.debug("Assigned " + mib + " MiBytes memory to each subtask of " + node.getPactContract().getName() + " (" + mib * node.getDegreeOfParallelism() + " MiBytes total.)");
final long mib = mem >> 20; LOG.debug("Assigned " + mib + " MiBytes memory to each subtask of " + node.getPactContract().getName() + " (" + mib * node.getDegreeOfParallelism() + " MiBytes total.)");
addSchemaToSchema(parentSchema, schema, iterationNode.getPactContract().getName()); addSchemaToSchema(pss, schema, iterationNode.getPactContract().getName()); } catch (MissingFieldTypeInfoException e) { throw new CompilerPostPassException("Could not set up runtime strategy for input channel to node '" + iterationNode.getPactContract().getName() + "'. Missing type information for key field " + e.getFieldNumber()); addSchemaToSchema(parentSchema, schema, iterationNode.getPactContract().getName()); + " in node '" + iterationNode.getPactContract().getName() + "'. Contradicting types between the " + "result of the iteration and the solution set schema: " + e.getPreviousType() + " and " + e.getNewType() + ". Most probable cause: Invalid constant field annotations."); } catch (MissingFieldTypeInfoException ex) { throw new CompilerPostPassException("Could not set up runtime strategy for input channel to node '" + iterationNode.getPactContract().getName() + "'. Missing type information for key field " + ex.getFieldNumber());
addSchemaToSchema(parentSchema, schema, iterationNode.getPactContract().getName()); addSchemaToSchema(pss, schema, iterationNode.getPactContract().getName()); } catch (MissingFieldTypeInfoException e) { throw new CompilerPostPassException("Could not set up runtime strategy for input channel to node '" + iterationNode.getPactContract().getName() + "'. Missing type information for key field " + e.getFieldNumber()); addSchemaToSchema(parentSchema, schema, iterationNode.getPactContract().getName()); + " in node '" + iterationNode.getPactContract().getName() + "'. Contradicting types between the " + "result of the iteration and the solution set schema: " + e.getPreviousType() + " and " + e.getNewType() + ". Most probable cause: Invalid constant field annotations."); } catch (MissingFieldTypeInfoException ex) { throw new CompilerPostPassException("Could not set up runtime strategy for input channel to node '" + iterationNode.getPactContract().getName() + "'. Missing type information for key field " + ex.getFieldNumber());