|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.DoFn<Pair<Pair<K,Integer>,Iterable<Pair<U,V>>>,Pair<K,Pair<U,V>>> org.apache.crunch.lib.join.JoinFn<K,U,V> org.apache.crunch.lib.join.FullOuterJoinFn<K,U,V>
K
- Type of the keys.U
- Type of the first PTable
's valuesV
- Type of the second PTable
's valuespublic class FullOuterJoinFn<K,U,V>
Used to perform the last step of an full outer join.
Constructor Summary | |
---|---|
FullOuterJoinFn(PType<K> keyType,
PType<U> leftValueType)
|
Method Summary | |
---|---|
void |
cleanup(Emitter<Pair<K,Pair<U,V>>> emitter)
Called during the cleanup of the MapReduce job this DoFn is
associated with. |
String |
getJoinType()
|
void |
initialize()
Initialize this DoFn. |
void |
join(K key,
int id,
Iterable<Pair<U,V>> pairs,
Emitter<Pair<K,Pair<U,V>>> emitter)
Performs the actual joining. |
Methods inherited from class org.apache.crunch.lib.join.JoinFn |
---|
process |
Methods inherited from class org.apache.crunch.DoFn |
---|
configure, disableDeepCopy, scaleFactor, setConfiguration, setContext |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FullOuterJoinFn(PType<K> keyType, PType<U> leftValueType)
Method Detail |
---|
public void initialize()
DoFn.process(Object, Emitter)
is triggered. Subclasses may override
this method to do appropriate initialization.
Called during the setup of the job instance this DoFn
is associated
with.
initialize
in class JoinFn<K,U,V>
public void join(K key, int id, Iterable<Pair<U,V>> pairs, Emitter<Pair<K,Pair<U,V>>> emitter)
join
in class JoinFn<K,U,V>
key
- The key for this grouping of values.id
- The side that this group of values is from (0 -> left, 1 -> right).pairs
- The group of values associated with this key and id pair.emitter
- The emitter to send the output to.public void cleanup(Emitter<Pair<K,Pair<U,V>>> emitter)
DoFn
is
associated with. Subclasses may override this method to do appropriate
cleanup.
cleanup
in class DoFn<Pair<Pair<K,Integer>,Iterable<Pair<U,V>>>,Pair<K,Pair<U,V>>>
emitter
- The emitter that was used for outputpublic String getJoinType()
getJoinType
in class JoinFn<K,U,V>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |