/** * This lets us just replace an old map and let the gc cleanup, vs clearing each map * * @return of type Map */ protected Map<Tuple, Collection<Tuple>>[] createKeyValuesArray() { // Ducts use identity for equality Map<Tuple, Collection<Tuple>>[] valueMap = new Map[ getNumDeclaredIncomingBranches() ]; int start = isBlockingStreamed() ? 0 : 1; for( int i = start; i < getNumDeclaredIncomingBranches(); i++ ) valueMap[ i ] = createTupleMap(); return valueMap; }