public interface CqHitSet extends StpReleasable, Iterator<CqHit>, Iterable<CqHit>
StpReleasable.ReleaseException
Modifier and Type | Method and Description |
---|---|
boolean |
doGetMore(long maxSetSize)
Requests the server to forward the next set of hits to the client.
|
String |
expandedSearchString() |
boolean |
hasMore()
Indicates whether or not the server has more data to provide via the
doGetMore() method.
|
long |
nextIndex() |
void |
setAutoGetMore(boolean autoGetMore)
Sets whether or not more hits are automatically requested from the server
when those currently on the client run out.
|
long |
size() |
long |
totalHits() |
release
boolean doGetMore(long maxSetSize) throws WvcmException
maxSetSize
- The maximum number of hits the client will accept in
the next set. If zero, the number of hits requested will be
the same as previously request.WvcmException
- If the server had indicated it had more hits, but
the attempt to get those hits from the server failed.String expandedSearchString()
boolean hasMore()
long nextIndex()
void setAutoGetMore(boolean autoGetMore)
autoGetMore
- If false, Iterator.hasNext() will return
false and Iterator.next() will throw an exception when
size() returns 0 (i.e. after the last hit on the client has
been returned by the Iterator.next() function). This is the
initial, default behavior of any result set.
If true, Iterator.hasNext() or Iterator.next() will automatically call doGetMore() when there are no more hits on the client. In this mode the last specified value for the hit set size is used in the implicit call of doGetMore().
long size()
long totalHits()
Copyright © IBM 2018. All rights reserved.