public interface DocFinder
long find(com.redhat.lightblue.crud.CRUDOperationContext ctx,
com.mongodb.DBCollection coll,
com.mongodb.DBObject mongoQuery,
com.mongodb.DBObject mongoProjection,
com.mongodb.DBObject mongoSort,
Long from,
Long to)
ctx - The operation context. The found documents are stored in the
context.coll - The collection on which the find operation will be performedmongoQuery - The MongoDB querymongoProjection - The MongoDB projectionmongoSort - Optional sortfrom - Optional from index, starting from 0to - Optional to index, starting from 0
The find implementation should search for documents in the given
collection using the search criteria. If a sort is given, the results
should be sorted, and optionally, a subset of the result set should be
returned.Copyright © 2014. All rights reserved.