|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.join.CompositeRecordReader<K,Writable,TupleWritable>
org.apache.hadoop.mapred.join.JoinRecordReader<K>
public abstract class JoinRecordReader<K extends WritableComparable>
Base class for Composite joins returning Tuples of arbitrary Writables.
| Nested Class Summary | |
|---|---|
protected class |
JoinRecordReader.JoinDelegationIterator
Since the JoinCollector is effecting our operation, we need only provide an iterator proxy wrapping its operation. |
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.mapred.join.CompositeRecordReader |
|---|
jc, kids |
| Constructor Summary | |
|---|---|
JoinRecordReader(int id,
JobConf conf,
int capacity,
Class<? extends WritableComparator> cmpcl)
|
|
| Method Summary | |
|---|---|
void |
accept(org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector jc,
K key)
While key-value pairs from this RecordReader match the given key, register them with the JoinCollector provided. |
TupleWritable |
createValue()
Create an object of the appropriate type to be used as a value. |
protected ResetableIterator<TupleWritable> |
getDelegate()
Return an iterator wrapping the JoinCollector. |
boolean |
hasNext()
Returns true if the stream is not empty, but provides no guarantee that a call to next(K,V) will succeed. |
int |
id()
Return the position in the collector this class occupies. |
K |
key()
Return the key this RecordReader would supply on a call to next(K,V) |
void |
key(K key)
Clone the key at the head of this RecordReader into the object provided. |
boolean |
next(K key,
TupleWritable value)
Emit the next set of key, value pairs as defined by the child RecordReaders and operation associated with this composite RR. |
void |
skip(K key)
Skip key-value pairs with keys less than or equal to the key provided. |
| Methods inherited from class org.apache.hadoop.mapred.join.CompositeRecordReader |
|---|
accept, add, close, combine, compareTo, createInternalValue, createKey, fillJoinCollector, getComparator, getConf, getPos, getProgress, getRecordReaderQueue, hasNext, id, key, key, setConf, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.hadoop.mapred.RecordReader |
|---|
close, createKey, getPos, getProgress |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public JoinRecordReader(int id,
JobConf conf,
int capacity,
Class<? extends WritableComparator> cmpcl)
throws IOException
IOException| Method Detail |
|---|
public boolean next(K key,
TupleWritable value)
throws IOException
key - the key to read data intovalue - the value to read data into
IOExceptionWritable.readFields(DataInput)public TupleWritable createValue()
protected ResetableIterator<TupleWritable> getDelegate()
getDelegate in class CompositeRecordReader<K extends WritableComparable,Writable,TupleWritable>public int id()
public K key()
public void key(K key)
throws IOException
IOExceptionpublic boolean hasNext()
public void skip(K key)
throws IOException
IOException
public void accept(org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector jc,
K key)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||