} else {
newCluster = new Canopy(canopy.getId(), point, 0L);
LOGGER.debug("Adding (T1) {} to Cluster center {}", Arrays.toString((int[]) value.get()),
Arrays.toString(canopy.getCenter()));
}
context.write(KEY, new CanopyWritable(newCluster));
}
stronglyBound = stronglyBound || dist < t2;
}
if (!stronglyBound) {
nextCanopyId++;
Cluster canopy = new Canopy(nextCanopyId, point, 1L);
LOGGER.debug("Creating a new Cluster {}", canopy.asFormattedString());
canopies.add(canopy);
KEY.set(Arrays.toString(canopy.getCenter()));
context.write(KEY, new CanopyWritable(canopy));
}
}