public static class ResetableIterator.EMPTY<U extends Writable> extends Object implements ResetableIterator<U>
ResetableIterator.EMPTY<U extends Writable>| 构造器和说明 |
|---|
ResetableIterator.EMPTY() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(U 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(U val)
Assign next value to actual.
|
boolean |
replay(U val)
Assign last value returned to actual.
|
void |
reset()
Set iterator to return to the start of its range.
|
public boolean hasNext()
ResetableIteratorhasNext 在接口中 ResetableIterator<U extends Writable>public void reset()
ResetableIteratorResetableIterator.add(T) to avoid a ConcurrentModificationException.reset 在接口中 ResetableIterator<U extends Writable>public void close()
throws IOException
ResetableIteratorclose 在接口中 ResetableIterator<U extends Writable>IOExceptionpublic void clear()
ResetableIteratorclear 在接口中 ResetableIterator<U extends Writable>public boolean next(U 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 在接口中 ResetableIterator<U extends Writable>IOExceptionpublic boolean replay(U val) throws IOException
ResetableIteratorreplay 在接口中 ResetableIterator<U extends Writable>IOExceptionpublic void add(U item) throws IOException
ResetableIteratoradd 在接口中 ResetableIterator<U extends Writable>IOExceptionCopyright © 2009 The Apache Software Foundation