/** Creates a Row with variable number of values. */ public static Row of(Object...values) { return new Row(values); }
/** Creates a Row with two column values. */ public static Row of(Object value0, Object value1) { return new Row(new Object[] {value0, value1}); }
/** Creates a Row with variable number of values. */ public static Row of(Object...values) { return new Row(values); }
/** Return a Row object **/ public Row build() { return new Row(values); }
/** Creates a Row with two column values. */ public static Row of(Object value0, Object value1) { return new Row(new Object[] {value0, value1}); }
/** Creates a Row with three column values. */ public static Row of(Object value0, Object value1, Object value2) { return new Row(new Object[] {value0, value1, value2}); }
/** Creates a Row with one column value. */ public static Row of(Object value0) { return new Row(new Object[] {value0}); }
/** Creates a Row with one column value. */ public static Row of(Object value0) { return new Row(new Object[] {value0}); }
/** Return a Row object **/ public Row build() { return new Row(values); }
/** Creates a Row with three column values. */ public static Row of(Object value0, Object value1, Object value2) { return new Row(new Object[] {value0, value1, value2}); }
/** Creates a Row. * * <p>Makes a defensive copy of the array, so the Row is immutable. * (If you're worried about the extra copy, call {@link #of(Object)}. * But the JIT probably avoids the copy.) */ public static Row asCopy(Object... values) { return new Row(values.clone()); }
/** Creates a Row. * * <p>Makes a defensive copy of the array, so the Row is immutable. * (If you're worried about the extra copy, call {@link #of(Object)}. * But the JIT probably avoids the copy.) */ public static Row asCopy(Object... values) { return new Row(values.clone()); }
public void run() throws InterruptedException { Row row; while ((row = source.receive()) != null) { context.values = row.getValues(); Object[] values = new Object[projectCount]; scalar.execute(context, values); sink.send(new Row(values)); } } }
public void run() throws InterruptedException { Row row; while ((row = source.receive()) != null) { context.values = row.getValues(); Object[] values = new Object[projectCount]; scalar.execute(context, values); sink.send(new Row(values)); } } }
return new Row(values); }); } else {
return new Row(values); }); } else {