|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator
protected class JoinRecordReader.JoinDelegationIterator
Since the JoinCollector is effecting our operation, we need only provide an iterator proxy wrapping its operation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.hadoop.mapred.join.ResetableIterator |
|---|
ResetableIterator.EMPTY<U extends Writable> |
| Constructor Summary | |
|---|---|
protected |
JoinRecordReader.JoinDelegationIterator()
|
| Method Summary | |
|---|---|
void |
add(TupleWritable item)
Add an element to the collection of elements to iterate over. |
void |
clear()
Close datasources, but do not release internal resources. |
void |
close()
Close datasources and release resources. |
boolean |
hasNext()
True if a call to next may return a value. |
boolean |
next(TupleWritable val)
Assign next value to actual. |
boolean |
replay(TupleWritable val)
Assign last value returned to actual. |
void |
reset()
Set iterator to return to the start of its range. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JoinRecordReader.JoinDelegationIterator()
| Method Detail |
|---|
public boolean hasNext()
ResetableIterator
hasNext in interface ResetableIterator<TupleWritable>
public boolean next(TupleWritable val)
throws IOException
ResetableIteratorResetableIterator.reset() (FIFO).
Note that a call to this may fail for nested joins (i.e. more elements
available, but none satisfying the constraints of the join)
next in interface ResetableIterator<TupleWritable>IOException
public boolean replay(TupleWritable val)
throws IOException
ResetableIterator
replay in interface ResetableIterator<TupleWritable>IOExceptionpublic void reset()
ResetableIteratorResetableIterator.add(T) to avoid a ConcurrentModificationException.
reset in interface ResetableIterator<TupleWritable>
public void add(TupleWritable item)
throws IOException
ResetableIterator
add in interface ResetableIterator<TupleWritable>IOException
public void close()
throws IOException
ResetableIterator
close in interface ResetableIterator<TupleWritable>IOExceptionpublic void clear()
ResetableIterator
clear in interface ResetableIterator<TupleWritable>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||