Interface CoreSyncFindIterable<ResultT>
-
- Type Parameters:
ResultT
- The type of the result.
- All Superinterfaces:
CoreRemoteMongoIterable<ResultT>
,Iterable<ResultT>
- All Known Implementing Classes:
CoreSyncFindIterableImpl
public interface CoreSyncFindIterable<ResultT> extends CoreRemoteMongoIterable<ResultT>
Iterable for find in the context of sync.
-
-
Method Summary
Modifier and Type Method Description CoreSyncFindIterable<ResultT>
filter(Bson filter)
Sets the query filter to apply to the query.CoreSyncFindIterable<ResultT>
limit(int limit)
Sets the limit to apply.CoreSyncFindIterable<ResultT>
projection(Bson projection)
Sets a document describing the fields to return for all matching documents.CoreSyncFindIterable<ResultT>
sort(Bson sort)
Sets the sort criteria to apply to the query.-
Methods inherited from interface com.mongodb.stitch.core.services.mongodb.remote.internal.CoreRemoteMongoIterable
first, forEach, into, iterator, map
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
filter
CoreSyncFindIterable<ResultT> filter(@Nullable Bson filter)
Sets the query filter to apply to the query.- Parameters:
filter
- the filter, which may be null.- Returns:
- this
-
limit
CoreSyncFindIterable<ResultT> limit(int limit)
Sets the limit to apply.- Parameters:
limit
- the limit, which may be 0- Returns:
- this
-
projection
CoreSyncFindIterable<ResultT> projection(@Nullable Bson projection)
Sets a document describing the fields to return for all matching documents.- Parameters:
projection
- the project document, which may be null.- Returns:
- this
-
sort
CoreSyncFindIterable<ResultT> sort(@Nullable Bson sort)
Sets the sort criteria to apply to the query.- Parameters:
sort
- the sort criteria, which may be null.- Returns:
- this
-
-