.input(computeFinalDistance)
.name("Find Nearest Final Centers")
.build();
// create DataSinkContract for writing the new cluster positions
FileDataSink finalClusters = new FileDataSink(new PointOutFormat(), output+"/centers", iteration, "Cluster Positions");
// write assigned clusters
FileDataSink clusterAssignments = new FileDataSink(new PointOutFormat(), output+"/points", findNearestFinalCluster, "Cluster Assignments");
List<FileDataSink> sinks = new ArrayList<FileDataSink>();
sinks.add(finalClusters);
sinks.add(clusterAssignments);