Exemplo n.º 1
0
 public void run() throws InterruptedException {
   Row row;
   while ((row = source.receive()) != null) {
     context.values = row.getValues();
     Object[] values = new Object[projects.size()];
     for (int i = 0; i < projects.size(); i++) {
       Scalar scalar = projects.get(i);
       values[i] = scalar.execute(context);
     }
     sink.send(new Row(values));
   }
 }
Exemplo n.º 2
0
 public void send(T item) {
   sink1.send(item);
   sink2.send(item);
 }