|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.rmi.api.remote.iterator.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(java.lang.Object[] buffer,
long size,
RemoteIterator remote)
Creates a new buffered remote iterator. |
|
| Method Summary | |
|---|---|
long |
getSize()
Returns the cached size of the iterator. |
java.lang.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(java.lang.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 java.lang.IllegalArgumentException,
java.util.NoSuchElementException,
java.rmi.RemoteException
skip in interface RemoteIteratoritems - number of items to skip
java.lang.IllegalArgumentException - if items is negative
java.util.NoSuchElementException - if skipped past the last element
java.rmi.RemoteException - on RMI errorsRemoteIterator.skip(long)
public java.lang.Object[] nextObjects()
throws java.rmi.RemoteException
nextObjects in interface RemoteIteratornull if the iterator has ended
java.rmi.RemoteException - on RMI errorsRemoteIterator.nextObjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||