Class SyncFindIterableImpl<ResultT>
- java.lang.Object
-
- com.mongodb.stitch.android.services.mongodb.remote.internal.RemoteMongoIterableImpl<ResultT>
-
- com.mongodb.stitch.android.services.mongodb.remote.internal.SyncFindIterableImpl<ResultT>
-
- Type Parameters:
ResultT
- The type of the result.
- All Implemented Interfaces:
RemoteMongoIterable<ResultT>
,SyncFindIterable<ResultT>
public class SyncFindIterableImpl<ResultT> extends RemoteMongoIterableImpl<ResultT> implements SyncFindIterable<ResultT>
Iterable for find in the context of sync.
-
-
Method Summary
Modifier and Type Method Description SyncFindIterable<ResultT>
filter(Bson filter)
Sets the query filter to apply to the query.SyncFindIterable<ResultT>
limit(int limit)
Sets the limit to apply.SyncFindIterable<ResultT>
projection(Bson projection)
Sets a document describing the fields to return for all matching documents.SyncFindIterable<ResultT>
sort(Bson sort)
Sets the sort criteria to apply to the query.-
Methods inherited from class com.mongodb.stitch.android.services.mongodb.remote.internal.RemoteMongoIterableImpl
first, forEach, into, iterator, map
-
-
-
-
Method Detail
-
filter
public SyncFindIterable<ResultT> filter(@Nullable Bson filter)
Description copied from interface:SyncFindIterable
Sets the query filter to apply to the query.- Specified by:
filter
in interfaceSyncFindIterable<ResultT>
- Parameters:
filter
- the filter, which may be null.- Returns:
- this
-
limit
public SyncFindIterable<ResultT> limit(int limit)
Description copied from interface:SyncFindIterable
Sets the limit to apply.- Specified by:
limit
in interfaceSyncFindIterable<ResultT>
- Parameters:
limit
- the limit, which may be 0- Returns:
- this
-
projection
public SyncFindIterable<ResultT> projection(@Nullable Bson projection)
Description copied from interface:SyncFindIterable
Sets a document describing the fields to return for all matching documents.- Specified by:
projection
in interfaceSyncFindIterable<ResultT>
- Parameters:
projection
- the project document, which may be null.- Returns:
- this
-
sort
public SyncFindIterable<ResultT> sort(@Nullable Bson sort)
Description copied from interface:SyncFindIterable
Sets the sort criteria to apply to the query.- Specified by:
sort
in interfaceSyncFindIterable<ResultT>
- Parameters:
sort
- the sort criteria, which may be null.- Returns:
- this
-
-