Package eu.stratosphere.test.recordJobs.kmeans.udfs

Examples of eu.stratosphere.test.recordJobs.kmeans.udfs.CoordVector


    private static final long serialVersionUID = 1L;

    @Override
    public void map(Record rec, Collector<Record> out) {
      CoordVector coord = rec.getField(1, CoordVector.class);

      double[] vector = coord.getCoordinates();
      for (int i = 0; i < vector.length; i++) {
        vector[i]++;
      }

      rec.setField(1, coord);
View Full Code Here

TOP

Related Classes of eu.stratosphere.test.recordJobs.kmeans.udfs.CoordVector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.