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

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

本文整理了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

query.setCollection( collectionName );

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

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

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

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

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

query.setCollection(collection);
    usersQuery.setCollection("users");
    usersQuery.setLimit(100);
    devicesQuery.setCollection("devices");
    devicesQuery.setLimit(100);
    devicesQuery.setCollection("devices");
    devicesQuery.setLimit(100);

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

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

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

protected List<EntityRef> getNotificationReceipts(EntityRef notification)
    throws Exception {
  Query query = new Query();
  query.setCollection("receipts");
  query.setLimit(100);
  PathQuery<Receipt> pathQuery = new PathQuery<Receipt>(
      new SimpleEntityRef(app.getEntityManager().getApplicationRef()),
      query
  );
  Iterator<Receipt> it = pathQuery.iterator(app.getEntityManager());
  List<EntityRef> list =new ArrayList<EntityRef>();//get all
  while(it.hasNext()){
    Receipt receipt =it.next();
    if(receipt.getNotificationUUID().equals(notification.getUuid())) {
      list.add(receipt);
    }
  }
  return list;
}

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

groupQuery.setCollection( "groups" );
groupQuery.setLimit( pageSize );
int expectedGroupQuerySize = 4;
userQuery.setCollection( "users" );
userQuery.setLimit( pageSize );
int expectedUserQuerySize = 5;
deviceQuery.setCollection( "devices" );
deviceQuery.setLimit( pageSize );
int expectedDeviceQuerySize = 3;

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

userQuery.setCollection( "users" );
userQuery.setLimit( pageSize );
int expectedUserQuerySize = 12;
deviceQuery.setCollection( "devices" );
deviceQuery.setLimit( pageSize );
int expectedDeviceQuerySize = 3;

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

query.setCollection( collectionName );

相关文章