private BasicWorkflowToken(BasicWorkflowToken other) { for (Map.Entry<Scope, Map<String, List<NodeValue>>> entry : other.tokenValueMap.entrySet()) { Map<String, List<NodeValue>> tokenValueMapForScope = new HashMap<>(); for (Map.Entry<String, List<NodeValue>> valueEntry : entry.getValue().entrySet()) { tokenValueMapForScope.put(valueEntry.getKey(), Lists.newArrayList(valueEntry.getValue())); } this.tokenValueMap.put(entry.getKey(), tokenValueMapForScope); } this.nodeName = other.nodeName; if (other.mapReduceCounters != null) { this.mapReduceCounters = copyHadoopCounters(other.mapReduceCounters); } this.maxSizeBytes = other.maxSizeBytes; this.bytesLeft = other.bytesLeft; }
private BasicWorkflowToken(BasicWorkflowToken other) { for (Map.Entry<Scope, Map<String, List<NodeValue>>> entry : other.tokenValueMap.entrySet()) { Map<String, List<NodeValue>> tokenValueMapForScope = new HashMap<>(); for (Map.Entry<String, List<NodeValue>> valueEntry : entry.getValue().entrySet()) { tokenValueMapForScope.put(valueEntry.getKey(), Lists.newArrayList(valueEntry.getValue())); } this.tokenValueMap.put(entry.getKey(), tokenValueMapForScope); } this.nodeName = other.nodeName; if (other.mapReduceCounters != null) { this.mapReduceCounters = copyHadoopCounters(other.mapReduceCounters); } this.maxSizeBytes = other.maxSizeBytes; this.bytesLeft = other.bytesLeft; }