@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append(plan.getType() + " \n"); for (Entry<String, Set<FragmentProto>> e : fragMap.entrySet()) { builder.append(e.getKey()).append(" : "); for (FragmentProto fragment : e.getValue()) { builder.append(fragment).append(", "); } } for (Entry<String, Set<FetchProto>> e : fetchMap.entrySet()) { builder.append(e.getKey()).append(" : "); for (FetchProto t : e.getValue()) { for (URI uri : Repartitioner.createFullURIs(maxUrlLength, t)){ builder.append(uri).append(" "); } } } return builder.toString(); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append(plan.getType() + " \n"); for (Entry<String, Set<FragmentProto>> e : fragMap.entrySet()) { builder.append(e.getKey()).append(" : "); for (FragmentProto fragment : e.getValue()) { builder.append(fragment).append(", "); } } for (Entry<String, Set<FetchProto>> e : fetchMap.entrySet()) { builder.append(e.getKey()).append(" : "); for (FetchProto t : e.getValue()) { for (URI uri : Repartitioner.createFullURIs(maxUrlLength, t)){ builder.append(uri).append(" "); } } } return builder.toString(); }
for (URI uri : Repartitioner.createFullURIs(maxUrlLength, f)) { storeChunkList.clear(); defaultStoreFile = new File(storeDir, "in_" + i);
for (URI uri : Repartitioner.createFullURIs(maxUrlLength, f)) { storeChunkList.clear(); defaultStoreFile = new File(storeDir, "in_" + i);
List<URI> uris = Repartitioner.createFullURIs(2 * StorageUnit.KB, fetch.getProto()); assertEquals(1, uris.size()); //In Hash Suffle, Fetcher return only one URI per partition.