|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.rmi.remote.BufferIterator
public class BufferIterator
A buffered remote iterator. Used to transfer a remote iterator reference along with a buffer of the first few iterator elements in one network transmission.
| Constructor Summary | |
|---|---|
BufferIterator(Object[] buffer,
long size,
RemoteIterator remote)
Creates a new buffered remote iterator. |
|
| Method Summary | |
|---|---|
long |
getSize()
Returns the cached size of the iterator. |
Object[] |
nextObjects()
Returns the currently buffered elements and fills in the buffer with next elements. |
void |
skip(long items)
Skips the given number of elements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferIterator(Object[] buffer,
long size,
RemoteIterator remote)
buffer - first elements in the iteratorsize - total iterator sizeremote - reference to the remaining iterator| Method Detail |
|---|
public long getSize()
getSize in interface RemoteIterator-1 if unknownRemoteIterator.getSize()
public void skip(long items)
throws IllegalArgumentException,
NoSuchElementException,
RemoteException
skip in interface RemoteIteratoritems - number of items to skip
IllegalArgumentException - if items is negative
NoSuchElementException - if skipped past the last element
RemoteException - on RMI errorsRemoteIterator.skip(long)
public Object[] nextObjects()
throws RemoteException
nextObjects in interface RemoteIteratornull if the iterator has ended
RemoteException - on RMI errorsRemoteIterator.nextObjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||