Interface RemoteFindIterable<ResultT>
-
- Type Parameters:
ResultT
- The type of the result.
- All Superinterfaces:
RemoteMongoIterable<ResultT>
- All Known Implementing Classes:
RemoteFindIterableImpl
public interface RemoteFindIterable<ResultT> extends RemoteMongoIterable<ResultT>
Iterable for find.
-
-
Method Summary
Modifier and Type Method Description RemoteFindIterable<ResultT>
filter(Bson filter)
Sets the query filter to apply to the query.RemoteFindIterable<ResultT>
limit(int limit)
Sets the limit to apply.RemoteFindIterable<ResultT>
projection(Bson projection)
Sets a document describing the fields to return for all matching documents.RemoteFindIterable<ResultT>
sort(Bson sort)
Sets the sort criteria to apply to the query.
-
-
-
Method Detail
-
filter
RemoteFindIterable<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
RemoteFindIterable<ResultT> limit(int limit)
Sets the limit to apply.- Parameters:
limit
- the limit, which may be 0- Returns:
- this
-
projection
RemoteFindIterable<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
RemoteFindIterable<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
-
-