Class RemoteFindIterableImpl<ResultT>
- java.lang.Object
-
- com.mongodb.stitch.android.services.mongodb.remote.internal.RemoteMongoIterableImpl<ResultT>
-
- com.mongodb.stitch.android.services.mongodb.remote.internal.RemoteFindIterableImpl<ResultT>
-
- All Implemented Interfaces:
RemoteFindIterable<ResultT>
,RemoteMongoIterable<ResultT>
public class RemoteFindIterableImpl<ResultT> extends RemoteMongoIterableImpl<ResultT> implements RemoteFindIterable<ResultT>
-
-
Constructor Summary
Constructors Constructor Description RemoteFindIterableImpl(CoreRemoteFindIterable<ResultT> iterable, TaskDispatcher dispatcher)
-
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.-
Methods inherited from class com.mongodb.stitch.android.services.mongodb.remote.internal.RemoteMongoIterableImpl
first, forEach, into, iterator, map
-
-
-
-
Constructor Detail
-
RemoteFindIterableImpl
public RemoteFindIterableImpl(CoreRemoteFindIterable<ResultT> iterable, TaskDispatcher dispatcher)
-
-
Method Detail
-
filter
public RemoteFindIterable<ResultT> filter(@Nullable Bson filter)
Description copied from interface:RemoteFindIterable
Sets the query filter to apply to the query.- Specified by:
filter
in interfaceRemoteFindIterable<ResultT>
- Parameters:
filter
- the filter, which may be null.- Returns:
- this
-
limit
public RemoteFindIterable<ResultT> limit(int limit)
Description copied from interface:RemoteFindIterable
Sets the limit to apply.- Specified by:
limit
in interfaceRemoteFindIterable<ResultT>
- Parameters:
limit
- the limit, which may be 0- Returns:
- this
-
projection
public RemoteFindIterable<ResultT> projection(@Nullable Bson projection)
Description copied from interface:RemoteFindIterable
Sets a document describing the fields to return for all matching documents.- Specified by:
projection
in interfaceRemoteFindIterable<ResultT>
- Parameters:
projection
- the project document, which may be null.- Returns:
- this
-
sort
public RemoteFindIterable<ResultT> sort(@Nullable Bson sort)
Description copied from interface:RemoteFindIterable
Sets the sort criteria to apply to the query.- Specified by:
sort
in interfaceRemoteFindIterable<ResultT>
- Parameters:
sort
- the sort criteria, which may be null.- Returns:
- this
-
-