public void map(Record dataPointRecord, Collector<Record> out) {
CoordVector dataPoint = dataPointRecord.getField(1, CoordVector.class);
for (Record clusterCenterRecord : this.clusterCenters) {
IntValue clusterCenterId = clusterCenterRecord.getField(0, IntValue.class);
CoordVector clusterPoint = clusterCenterRecord.getField(1, CoordVector.class);
this.distance.setValue(dataPoint.computeEuclidianDistance(clusterPoint));
// add cluster center id and distance to the data point record