|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LexGrid.LexBIG.cagrid.adapters.ResolvedConceptReferencesIteratorAdapter
public class ResolvedConceptReferencesIteratorAdapter
Constructor Summary | |
---|---|
ResolvedConceptReferencesIteratorAdapter(ResolvedConceptReferencesIteratorClient client)
|
Method Summary | |
---|---|
ResolvedConceptReferenceList |
get(int arg0,
int arg1)
Return concept references from the underlying list, from the start point (inclusive) to the end point (exclusive). |
ResolvedConceptReferenceList |
getNext()
Return a list containing the items specified in the last scroll call. |
boolean |
hasNext()
True means that there still values that can be returned. |
ResolvedConceptReference |
next()
Return the next available concept reference, in order, from the underlying list. |
ResolvedConceptReferenceList |
next(int arg0)
Return concept references from the underlying list, in order and up to the specified maximum. |
int |
numberRemaining()
Returns a count of the number of items remaining in the iterator. |
void |
release()
Release the iterator. |
ResolvedConceptReferencesIterator |
scroll(int arg0)
Return the next batch of resolved concept references. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResolvedConceptReferencesIteratorAdapter(ResolvedConceptReferencesIteratorClient client) throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public ResolvedConceptReferenceList get(int arg0, int arg1) throws LBResourceUnavailableException, LBInvocationException, LBParameterException
ResolvedConceptReferencesIterator
get
in interface ResolvedConceptReferencesIterator
arg0
- The start point of the range of results to return - inclusive. The entries
list is 0 indexed - so to get the first result, you should start with '0'.
LBParameterException is thrown if the start position is > the last item
available.arg1
- The end point of the range of results to return - exclusive. A range request
of (0, 50) will return 50 items (0 through 49 in an array)
LBResourceUnavailableException
LBInvocationException
LBParameterException
public ResolvedConceptReferenceList getNext()
ResolvedConceptReferencesIterator
getNext
in interface ResolvedConceptReferencesIterator
public ResolvedConceptReference next() throws LBResourceUnavailableException, LBInvocationException
ResolvedConceptReferencesIterator
Note: This is effectively the same as performing next(1), but eliminates the need to continually unwrap the concept reference from the resolved list. Note: This method is not affected by calls to get(int, int).
next
in interface ResolvedConceptReferencesIterator
LBResourceUnavailableException
LBInvocationException
public ResolvedConceptReferenceList next(int arg0) throws LBResourceUnavailableException, LBInvocationException
ResolvedConceptReferencesIterator
next
in interface ResolvedConceptReferencesIterator
arg0
- The maximum number of entries to return. Note that the
interface may return less than the supplied number of entries
even if there are still more to come. -1 means return a
"natural" block size, potentially up to the maximum amount
available, as determined by the service software. 0 returns an
empty list and can be used to keep the iterator "alive".
LBResourceUnavailableException
LBInvocationException
public ResolvedConceptReferencesIterator scroll(int arg0) throws LBResourceUnavailableException, LBInvocationException
ResolvedConceptReferencesIterator
scroll
in interface ResolvedConceptReferencesIterator
arg0
- The maximum number of remaining concepts to return
LBResourceUnavailableException
LBInvocationException
public boolean hasNext() throws LBResourceUnavailableException
EntityListIterator
hasNext
in interface EntityListIterator
LBResourceUnavailableException
public int numberRemaining() throws LBResourceUnavailableException
EntityListIterator
numberRemaining
in interface EntityListIterator
LBResourceUnavailableException
for an authoritative answer whether or not the iterator
has returned all possible items.
public void release() throws LBResourceUnavailableException
EntityListIterator
release
in interface EntityListIterator
LBResourceUnavailableException
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |