public interface IterableQueryResult extends Iterable<Map<String,Serializable>>
The close()
method MUST be called when the query result is no more needed, otherwise underlying resources
will be leaked. There is no auto-closing at the end of the iteration.
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the query result and releases the underlying resources held by the cursor.
|
boolean |
isLife()
Indicates if the query result has not been closed
|
long |
pos()
Gets the current position in the iterator.
|
long |
size()
Gets the total size of the query result.
|
void |
skipTo(long pos)
Skips to a given position in the iterator.
|
void close()
This MUST be called when the query result is no more needed, otherwise underlying resources will be leaked. There is no auto-closing at the end of the iteration.
boolean isLife()
long size()
Note that this may be costly, and that some backends may not be able to do this operation, in which case
-1
will be returned.
-1
for an unknown sizelong pos()
Positions start at 0
.
void skipTo(long pos)
Positions start at 0
.
Copyright © 2015 Nuxeo SA. All rights reserved.