public interface Cursor<T> extends RecordIterable<T>
A collection of NitriteId
s of the database records,
as a result of a find operation.
Modifier and Type | Method and Description |
---|---|
<Foreign,Joined> |
join(Cursor<Foreign> foreignCursor,
Lookup lookup,
java.lang.Class<Joined> type)
Performs a left outer join with a foreign cursor with the specified lookup parameters.
|
<P> RecordIterable<P> |
project(java.lang.Class<P> projectionType)
Projects the result of one type into an
Iterable of other type. |
firstOrDefault, hasMore, size, toList, totalCount
<P> RecordIterable<P> project(java.lang.Class<P> projectionType)
Projects the result of one type into an Iterable
of other type.
P
- the type of the target objects.projectionType
- the projection type.Iterable
of projected objects.<Foreign,Joined> RecordIterable<Joined> join(Cursor<Foreign> foreignCursor, Lookup lookup, java.lang.Class<Joined> type)
Performs a left outer join with a foreign cursor with the specified lookup parameters.
It performs an equality match on the localField to the foreignField from the objects of the foreign cursor.
If an input object does not contain the localField, the join treats the field as having a value of null
for matching purposes.
Foreign
- the type of the foreign object.Joined
- the type of the joined object.foreignCursor
- the foreign cursor for the join.lookup
- the lookup parameter for the join operation.type
- the type of the joined record.