crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwi...@apache.org
Subject git commit: CRUNCH-164: Add of method to TupleN for consistency. Contributed by Dave Beech.
Date Thu, 07 Feb 2013 12:20:43 GMT
Updated Branches:
  refs/heads/master 3e9d6ed64 -> 3f9d29b33


CRUNCH-164: Add of method to TupleN for consistency. Contributed by Dave Beech.


Project: http://git-wip-us.apache.org/repos/asf/incubator-crunch/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-crunch/commit/3f9d29b3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-crunch/tree/3f9d29b3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-crunch/diff/3f9d29b3

Branch: refs/heads/master
Commit: 3f9d29b337af71f5b28960a3b8299500e96bd1d6
Parents: 3e9d6ed
Author: Josh Wills <jwills@apache.org>
Authored: Thu Feb 7 04:19:16 2013 -0800
Committer: Josh Wills <jwills@apache.org>
Committed: Thu Feb 7 04:19:16 2013 -0800

----------------------------------------------------------------------
 crunch/src/main/java/org/apache/crunch/TupleN.java |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-crunch/blob/3f9d29b3/crunch/src/main/java/org/apache/crunch/TupleN.java
----------------------------------------------------------------------
diff --git a/crunch/src/main/java/org/apache/crunch/TupleN.java b/crunch/src/main/java/org/apache/crunch/TupleN.java
index 8c77994..e5eceb5 100644
--- a/crunch/src/main/java/org/apache/crunch/TupleN.java
+++ b/crunch/src/main/java/org/apache/crunch/TupleN.java
@@ -28,6 +28,10 @@ public class TupleN implements Tuple {
 
   private final Object values[];
 
+  public static TupleN of(Object... values) {
+    return new TupleN(values);
+  }
+
   public TupleN(Object... values) {
     this.values = new Object[values.length];
     System.arraycopy(values, 0, this.values, 0, values.length);


Mime
View raw message