public interface RecordIterable<T> extends Resettable<T>
An iterable of database records which supports pagination and projection.
Modifier and Type | Method and Description |
---|---|
T |
firstOrDefault()
Gets the first element of the result or
null if it is empty. |
boolean |
hasMore()
Specifies if there are more elements in the database that
has not been retrieved yet.
|
int |
size()
Gets the size of the current record set.
|
java.util.List<T> |
toList()
Returns a list of all elements.
|
int |
totalCount()
Gets the total count of the records in the database matching a filter criteria.
|
reset
boolean hasMore()
Specifies if there are more elements in the database that has not been retrieved yet.
true
if the cursor has more elements; otherwise false
.int size()
Gets the size of the current record set.
int totalCount()
Gets the total count of the records in the database matching a filter criteria.
If pagination is used during find operation, |
NitriteCollection.find(Filter, FindOptions)
,
NitriteCollection.find(FindOptions)
,
FindOptions.limit(int, int)
T firstOrDefault()
Gets the first element of the result or
null
if it is empty.
null
java.util.List<T> toList()
Returns a list of all elements.