private void addSchemaToSchema(T sourceSchema, T targetSchema, String opName) { try { for (Map.Entry<Integer, X> entry : sourceSchema) { Integer pos = entry.getKey(); targetSchema.addType(pos, entry.getValue()); } } catch (ConflictingFieldTypeInfoException e) { throw new CompilerPostPassException("Conflicting type information for field " + e.getFieldNumber() + " in node '" + opName + "' propagated from successor node. " + "Conflicting types: " + e.getPreviousType() + " and " + e.getNewType() + ". Most probable cause: Invalid constant field annotations."); } }
schema.increaseNumConnectionsThatContributed(); if (schema.getNumConnectionsThatContributed() < iterationNode.getOutgoingChannels().size()) { return; schema.increaseNumConnectionsThatContributed(); if (schema.getNumConnectionsThatContributed() < iterationNode.getOutgoingChannels().size()) { return; for (Map.Entry<Integer, X> entry : sss) { Integer pos = entry.getKey(); schema.addType(pos, entry.getValue()); schema.increaseNumConnectionsThatContributed(); SingleInputNode optNode = sn.getSingleInputNode(); if (schema.getNumConnectionsThatContributed() < sn.getOutgoingChannels().size()) { return; schema1.increaseNumConnectionsThatContributed(); schema2.increaseNumConnectionsThatContributed(); TwoInputNode optNode = dn.getTwoInputNode(); if (schema1.getNumConnectionsThatContributed() < dn.getOutgoingChannels().size()) { return; schema.increaseNumConnectionsThatContributed();
private void addSchemaToSchema(T sourceSchema, T targetSchema, OptimizerNode optNode, int input) { try { for (Map.Entry<Integer, X> entry : sourceSchema) { Integer pos = entry.getKey(); SemanticProperties sprops = optNode.getSemanticProperties(); if (sprops != null && sprops.getForwardingTargetFields(input, pos) != null && sprops.getForwardingTargetFields(input, pos).contains(pos)) { targetSchema.addType(pos, entry.getValue()); } } } catch (ConflictingFieldTypeInfoException e) { throw new CompilerPostPassException("Conflicting type information for field " + e.getFieldNumber() + " in node '" + optNode.getOperator().getName() + "' propagated from successor node. " + "Conflicting types: " + e.getPreviousType() + " and " + e.getNewType() + ". Most probable cause: Invalid constant field annotations."); } }