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

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

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

Query.getCollection介绍

暂无

代码示例

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

  1. public MultiQueryIterator( EntityManager entityManager, Iterator<EntityRef> source, Query query ) {
  2. if ( query.getCollection() == null && query.getConnectionType() == null ) {
  3. throw new IllegalArgumentException( "Query must have a collection or connectionType value" );
  4. }
  5. this.entityManager = entityManager;
  6. this.source = source;
  7. this.query = query;
  8. }

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

  1. /**
  2. * chained
  3. *
  4. * @param source the source query we're chaining from
  5. * @param query the query - must have a collection or connectType value set
  6. */
  7. public PathQuery( PathQuery source, Query query ) {
  8. if ( query.getCollection() == null && query.getConnectionType() == null ) {
  9. throw new IllegalArgumentException( "Query must have a collection or connectionType value" );
  10. }
  11. this.source = source;
  12. this.query = query;
  13. }

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

  1. /**
  2. * top level
  3. * @param head the top-level entity
  4. * @param query the query - must have a collection or connectType value set
  5. */
  6. public PathQuery(EntityRef head, Query query) {
  7. if ( query.getCollection() == null && query.getConnectionType() == null ) {
  8. throw new IllegalArgumentException( "Query must have a collection or connectionType value" );
  9. }
  10. this.uuid = head.getUuid();
  11. this.type = head.getType();
  12. this.query = query;
  13. }

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

  1. private Results getResultsFor( EntityRef ref ) {
  2. entityRef.setUUID(ref.getUuid());
  3. entityRef.setType(ref.getType());
  4. try {
  5. return ( query.getCollection() != null ) ?
  6. entityManager.searchCollection( entityRef, query.getCollection(), query ) :
  7. entityManager.searchTargetEntities(entityRef, query);
  8. }
  9. catch ( Exception e ) {
  10. throw new RuntimeException( e );
  11. }
  12. }

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

  1. uuid.toString(), query.getCollection(), entityUUID.toString());
  2. String entityType = InflectionUtils.singularize(query.getCollection());
  3. uuid.toString(), query.getCollection(), name);
  4. String entityType = InflectionUtils.singularize(query.getCollection());
  5. uuid.toString(), query.getCollection(),
  6. query.getQl().isPresent() ? query.getQl().get() : "NONE");
  7. return ( query.getCollection() != null ) ?
  8. em.searchCollection( ref, query.getCollection(), query ) :
  9. em.searchTargetEntities(ref, query);

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

  1. if (query.getCollection() != null) {
  2. ref.getType(), query.getCollection());
  3. devicesQuery.setResultsLevel(Query.Level.CORE_PROPERTIES);
  4. return entityManager.searchCollection(ref, devicesQuery.getCollection(), devicesQuery);
  5. return entityManager.searchCollection(ref, query.getCollection(), query);
  6. ref.getType(), query.getCollection());

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

  1. entities = em.searchCollection(new SimpleEntityRef("user", ref.getUuid()), devicesQuery.getCollection(), devicesQuery).getEntities();

相关文章