本文整理了Java中org.apache.usergrid.persistence.Query.getCollection
方法的一些代码示例,展示了Query.getCollection
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getCollection
方法的具体详情如下:
包路径:org.apache.usergrid.persistence.Query
类名称:Query
方法名:getCollection
暂无
代码示例来源:origin: apache/usergrid
public MultiQueryIterator( EntityManager entityManager, Iterator<EntityRef> source, Query query ) {
if ( query.getCollection() == null && query.getConnectionType() == null ) {
throw new IllegalArgumentException( "Query must have a collection or connectionType value" );
}
this.entityManager = entityManager;
this.source = source;
this.query = query;
}
代码示例来源:origin: apache/usergrid
/**
* chained
*
* @param source the source query we're chaining from
* @param query the query - must have a collection or connectType value set
*/
public PathQuery( PathQuery source, Query query ) {
if ( query.getCollection() == null && query.getConnectionType() == null ) {
throw new IllegalArgumentException( "Query must have a collection or connectionType value" );
}
this.source = source;
this.query = query;
}
代码示例来源:origin: apache/usergrid
/**
* top level
* @param head the top-level entity
* @param query the query - must have a collection or connectType value set
*/
public PathQuery(EntityRef head, Query query) {
if ( query.getCollection() == null && query.getConnectionType() == null ) {
throw new IllegalArgumentException( "Query must have a collection or connectionType value" );
}
this.uuid = head.getUuid();
this.type = head.getType();
this.query = query;
}
代码示例来源:origin: apache/usergrid
private Results getResultsFor( EntityRef ref ) {
entityRef.setUUID(ref.getUuid());
entityRef.setType(ref.getType());
try {
return ( query.getCollection() != null ) ?
entityManager.searchCollection( entityRef, query.getCollection(), query ) :
entityManager.searchTargetEntities(entityRef, query);
}
catch ( Exception e ) {
throw new RuntimeException( e );
}
}
代码示例来源:origin: apache/usergrid
uuid.toString(), query.getCollection(), entityUUID.toString());
String entityType = InflectionUtils.singularize(query.getCollection());
uuid.toString(), query.getCollection(), name);
String entityType = InflectionUtils.singularize(query.getCollection());
uuid.toString(), query.getCollection(),
query.getQl().isPresent() ? query.getQl().get() : "NONE");
return ( query.getCollection() != null ) ?
em.searchCollection( ref, query.getCollection(), query ) :
em.searchTargetEntities(ref, query);
代码示例来源:origin: apache/usergrid
if (query.getCollection() != null) {
ref.getType(), query.getCollection());
devicesQuery.setResultsLevel(Query.Level.CORE_PROPERTIES);
return entityManager.searchCollection(ref, devicesQuery.getCollection(), devicesQuery);
return entityManager.searchCollection(ref, query.getCollection(), query);
ref.getType(), query.getCollection());
代码示例来源:origin: apache/usergrid
entities = em.searchCollection(new SimpleEntityRef("user", ref.getUuid()), devicesQuery.getCollection(), devicesQuery).getEntities();
内容来源于网络,如有侵权,请联系作者删除!