Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
unix- eclipse- java
Description
sample code:
String where="
";
DBObject whereCond = (DBObject) JSON.parse(where);
DBCollection collection = mongoTemplate.getCollection("photo_user_action_log");
List<Integer> userList=collection.distinct("user_id", whereCond);
=========================================================
like this i want :
//cursor.skip(startIndex);
//cursor.limit(recordPerPage);
//cursor.sort(new BasicDBObject("created.date", 1));