Package eu.stratosphere.types

Examples of eu.stratosphere.types.Record.copyTo()


      } catch (InterruptedException e) {
        throw new RuntimeException("Reader was interrupted.");
      }
      return null;
    } else {
      r.copyTo(reuse);
      return reuse;
    }
  }

  public void emit(Record element) throws InterruptedException {
View Full Code Here


      double distance = res.getField(3, DoubleValue.class).getValue();

      // compare distances
      if (distance < nearestDistance) {
        nearestDistance = distance;
        res.copyTo(this.nearest);
      }
    }

    // emit nearest one
    out.collect(this.nearest);
View Full Code Here

      Record rec = records.next();
      Tuple t = rec.getField(1, Tuple.class);
     
      if(first) {
        first = false;
        rec.copyTo(outRecord);
        returnTuple.addAttribute(rec.getField(0, StringValue.class).toString());
      }
     
      long tupleQuantity = Long.parseLong(t.getStringValueAt(4));
      quantity += tupleQuantity;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.