crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwi...@apache.org
Subject git commit: CRUNCH-240: Make DefaultJoinStrategy.join(PTable, PTable, JoinFn) public
Date Fri, 19 Jul 2013 15:34:51 GMT
Updated Branches:
  refs/heads/master 181b476fe -> a708e8068


CRUNCH-240: Make DefaultJoinStrategy.join(PTable, PTable, JoinFn) public


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

Branch: refs/heads/master
Commit: a708e80685b12edffd11e1c4bf8197e09e336c2e
Parents: 181b476
Author: Josh Wills <jwills@apache.org>
Authored: Thu Jul 18 13:03:35 2013 -0700
Committer: Josh Wills <jwills@apache.org>
Committed: Thu Jul 18 13:03:35 2013 -0700

----------------------------------------------------------------------
 .../org/apache/crunch/lib/join/DefaultJoinStrategy.java   | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/crunch/blob/a708e806/crunch-core/src/main/java/org/apache/crunch/lib/join/DefaultJoinStrategy.java
----------------------------------------------------------------------
diff --git a/crunch-core/src/main/java/org/apache/crunch/lib/join/DefaultJoinStrategy.java
b/crunch-core/src/main/java/org/apache/crunch/lib/join/DefaultJoinStrategy.java
index d1cf3db..3edceeb 100644
--- a/crunch-core/src/main/java/org/apache/crunch/lib/join/DefaultJoinStrategy.java
+++ b/crunch-core/src/main/java/org/apache/crunch/lib/join/DefaultJoinStrategy.java
@@ -50,7 +50,15 @@ public class DefaultJoinStrategy<K, U, V> implements JoinStrategy<K,
U, V> {
     }
   }
 
-  PTable<K, Pair<U, V>> join(PTable<K, U> left, PTable<K, V> right,
JoinFn<K, U, V> joinFn) {
+  /**
+   * Perform a default join on the given {@code PTable} instances using a user-specified
{@code JoinFn}.
+   *
+   * @param left left table to be joined
+   * @param right right table to be joined
+   * @param joinFn The user-specified implementation of the {@code JoinFn} class
+   * @return joined tables
+   */
+  public PTable<K, Pair<U, V>> join(PTable<K, U> left, PTable<K, V>
right, JoinFn<K, U, V> joinFn) {
     PTypeFamily ptf = left.getTypeFamily();
     PGroupedTable<Pair<K, Integer>, Pair<U, V>> grouped = preJoin(left,
right);
     PTableType<K, Pair<U, V>> ret = ptf


Mime
View raw message