|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapreduce.lib.join.CompositeRecordReader.JoinCollector
public class CompositeRecordReader.JoinCollector
Collector for join values. This accumulates values for a given key from the child RecordReaders. If one or more child RR contain duplicate keys, this will emit the cross product of the associated values until exhausted.
Constructor Summary | |
---|---|
CompositeRecordReader.JoinCollector(int card)
Construct a collector capable of handling the specified number of children. |
Method Summary | |
---|---|
void |
add(int id,
ResetableIterator<X> i)
Register a given iterator at position id. |
void |
clear()
Clear all state information. |
void |
close()
Close all child iterators. |
boolean |
flush(TupleWritable value)
Write the next value into key, value as accepted by the operation associated with this set of RecordReaders. |
boolean |
hasNext()
Returns false if exhausted or if reset(K) has not been called. |
K |
key()
Return the key associated with this collection. |
protected boolean |
next(TupleWritable val)
Populate Tuple from iterators. |
boolean |
replay(TupleWritable val)
Replay the last Tuple emitted. |
void |
reset(K key)
Codify the contents of the collector to be iterated over. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeRecordReader.JoinCollector(int card)
Method Detail |
---|
public void add(int id, ResetableIterator<X> i) throws IOException
IOException
public K key()
public void reset(K key)
public void clear()
public boolean hasNext()
protected boolean next(TupleWritable val) throws IOException
IOException
public boolean replay(TupleWritable val) throws IOException
IOException
public void close() throws IOException
IOException
public boolean flush(TupleWritable value) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |