Package org.eatbacon.mongodb.benchmark.pojo

Examples of org.eatbacon.mongodb.benchmark.pojo.UserActivity


         
          BasicDBList level2 = (BasicDBList)dbo.get("activity");
          if(level2 != null){
            List<UserActivity> activities = new ArrayList<UserActivity>();
            for(Iterator<?> y = level2.iterator(); y.hasNext();){
              UserActivity activity = new UserActivity();
              BasicDBObject level2Object = (BasicDBObject) y.next();
   
              activity.setLoginCount(level2Object.getLong("login_count"));
              activity.setReferrer(level2Object.getString("referrer"));
             
              activities.add(activity);
            }
            user.setActivity(activities);
            users.add(user);
View Full Code Here

TOP

Related Classes of org.eatbacon.mongodb.benchmark.pojo.UserActivity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.