本文整理了Java中org.intermine.objectstore.query.Query.isDistinct
方法的一些代码示例,展示了Query.isDistinct
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.isDistinct
方法的具体详情如下:
包路径:org.intermine.objectstore.query.Query
类名称:Query
方法名:isDistinct
[英]Get the value of the distinct property
[中]获取distinct属性的值
代码示例来源:origin: org.intermine/intermine-objectstore
if (!q.isDistinct()) {
return false;
代码示例来源:origin: intermine/intermine
if (!q.isDistinct()) {
return false;
代码示例来源:origin: org.intermine/intermine-objectstore
StringBuffer retval = new StringBuffer(q.isDistinct() ? "SELECT DISTINCT " : "SELECT ");
Set<QueryObjectPathExpression> pathList = new HashSet<QueryObjectPathExpression>();
for (QuerySelectable qn : q.getSelect()) {
代码示例来源:origin: intermine/intermine
StringBuffer retval = new StringBuffer(q.isDistinct() ? "SELECT DISTINCT " : "SELECT ");
Set<QueryObjectPathExpression> pathList = new HashSet<QueryObjectPathExpression>();
for (QuerySelectable qn : q.getSelect()) {
代码示例来源:origin: intermine/intermine
&& (!q.getSelect().contains(new QueryField((QueryClass) node,
"id")))) {
if (q.isDistinct()) {
throw new ObjectStoreException("Class " + q.getAliases().get(node)
+ " in the ORDER BY list must be in the SELECT list, or its"
retval.append(buffer.toString());
seen.add(buffer.toString());
if (q.isDistinct()) {
if (q.getSelect().contains(ref)) {
retval.append(buffer.toString());
seen.add(buffer.toString());
if ((!q.getSelect().contains(node)) && q.isDistinct()
&& (node instanceof QueryField)) {
FromElement fe = ((QueryField) node).getFromElement();
+ " query made non-distinct");
} else if ((!q.getSelect().contains(node)) && (!q.isDistinct())
&& ((kind == QUERY_FOR_PRECOMP)
|| (kind == QUERY_FOR_GOFASTER))
代码示例来源:origin: org.intermine/intermine-objectstore
&& (!q.getSelect().contains(new QueryField((QueryClass) node,
"id")))) {
if (q.isDistinct()) {
throw new ObjectStoreException("Class " + q.getAliases().get(node)
+ " in the ORDER BY list must be in the SELECT list, or its"
retval.append(buffer.toString());
seen.add(buffer.toString());
if (q.isDistinct()) {
if (q.getSelect().contains(ref)) {
retval.append(buffer.toString());
seen.add(buffer.toString());
if ((!q.getSelect().contains(node)) && q.isDistinct()
&& (node instanceof QueryField)) {
FromElement fe = ((QueryField) node).getFromElement();
+ " query made non-distinct");
} else if ((!q.getSelect().contains(node)) && (!q.isDistinct())
&& ((kind == QUERY_FOR_PRECOMP)
|| (kind == QUERY_FOR_GOFASTER))
代码示例来源:origin: org.intermine/intermine-objectstore
newQuery.setDistinct(query.isDistinct());
newQuery.setLimit(query.getLimit());
} catch (NoSuchFieldException e) {
代码示例来源:origin: intermine/intermine
newQuery.setDistinct(query.isDistinct());
newQuery.setLimit(query.getLimit());
} catch (NoSuchFieldException e) {
代码示例来源:origin: org.intermine/intermine-integrate
q.setDistinct(query.isDistinct());
return q;
代码示例来源:origin: intermine/intermine
q.setDistinct(query.isDistinct());
return q;
内容来源于网络,如有侵权,请联系作者删除!