org.apache.usergrid.persistence.Query.setCollection()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(322)

本文整理了Java中org.apache.usergrid.persistence.Query.setCollection方法的一些代码示例,展示了Query.setCollection的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.setCollection方法的具体详情如下:
包路径:org.apache.usergrid.persistence.Query
类名称:Query
方法名:setCollection

Query.setCollection介绍

暂无

代码示例

代码示例来源:origin: apache/usergrid

  1. query.setCollection( collectionName );

代码示例来源:origin: apache/usergrid

  1. notifierHashMap = new HashMap<>();
  2. Query query = new Query();
  3. query.setCollection("notifiers");
  4. query.setLimit(100);
  5. PathQuery<Notifier> pathQuery = new PathQuery<>(

代码示例来源:origin: apache/usergrid

  1. devicesQuery.setCollection("devices");
  2. devicesQuery.setResultsLevel(Query.Level.CORE_PROPERTIES);
  3. devicesQuery.setLimit(50); // for now, assume a user has no more than 50 devices

代码示例来源:origin: apache/usergrid

  1. query.setCollection(collection);
  2. usersQuery.setCollection("users");
  3. usersQuery.setLimit(100);
  4. devicesQuery.setCollection("devices");
  5. devicesQuery.setLimit(100);
  6. devicesQuery.setCollection("devices");
  7. devicesQuery.setLimit(100);

代码示例来源:origin: apache/usergrid

  1. devicesQuery.setCollection("devices");
  2. devicesQuery.setResultsLevel(Query.Level.CORE_PROPERTIES);

代码示例来源:origin: apache/usergrid

  1. protected List<EntityRef> getNotificationReceipts(EntityRef notification)
  2. throws Exception {
  3. Query query = new Query();
  4. query.setCollection("receipts");
  5. query.setLimit(100);
  6. PathQuery<Receipt> pathQuery = new PathQuery<Receipt>(
  7. new SimpleEntityRef(app.getEntityManager().getApplicationRef()),
  8. query
  9. );
  10. Iterator<Receipt> it = pathQuery.iterator(app.getEntityManager());
  11. List<EntityRef> list =new ArrayList<EntityRef>();//get all
  12. while(it.hasNext()){
  13. Receipt receipt =it.next();
  14. if(receipt.getNotificationUUID().equals(notification.getUuid())) {
  15. list.add(receipt);
  16. }
  17. }
  18. return list;
  19. }

代码示例来源:origin: apache/usergrid

  1. groupQuery.setCollection( "groups" );
  2. groupQuery.setLimit( pageSize );
  3. int expectedGroupQuerySize = 4;
  4. userQuery.setCollection( "users" );
  5. userQuery.setLimit( pageSize );
  6. int expectedUserQuerySize = 5;
  7. deviceQuery.setCollection( "devices" );
  8. deviceQuery.setLimit( pageSize );
  9. int expectedDeviceQuerySize = 3;

代码示例来源:origin: apache/usergrid

  1. userQuery.setCollection( "users" );
  2. userQuery.setLimit( pageSize );
  3. int expectedUserQuerySize = 12;
  4. deviceQuery.setCollection( "devices" );
  5. deviceQuery.setLimit( pageSize );
  6. int expectedDeviceQuerySize = 3;

代码示例来源:origin: apache/usergrid

  1. query.setCollection( collectionName );

相关文章