本文整理了Java中org.intermine.objectstore.query.Query.clearOrderBy
方法的一些代码示例,展示了Query.clearOrderBy
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.clearOrderBy
方法的具体详情如下:
包路径:org.intermine.objectstore.query.Query
类名称:Query
方法名:clearOrderBy
[英]Clears the ORDER BY clause of this Query
[中]清除此查询的ORDER BY子句
代码示例来源:origin: org.intermine/intermine-objectstore
/**
* Return a List containing clones of the given Query, but with all permutations
* of order by for the QueryClass objects on the from list.
*
* @param q the Query
* @return clones of the Query with all permutations of orderBy
*/
private static List<Query> getOrderedQueries(Query q) {
List<Query> queryList = new ArrayList<Query>();
Set<int[]> permutations = permutations(q.getEffectiveOrderBy().size());
for (int[] order : permutations) {
Query newQuery = QueryCloner.cloneQuery(q);
List<Object> orderBy = new ArrayList<Object>(newQuery.getEffectiveOrderBy());
newQuery.clearOrderBy();
for (int i = 0; i < order.length; i++) {
newQuery.addToOrderBy((QueryClass) orderBy.get(order[i]));
}
queryList.add(newQuery);
}
return queryList;
}
代码示例来源:origin: intermine/intermine
/**
* Return a List containing clones of the given Query, but with all permutations
* of order by for the QueryClass objects on the from list.
*
* @param q the Query
* @return clones of the Query with all permutations of orderBy
*/
private static List<Query> getOrderedQueries(Query q) {
List<Query> queryList = new ArrayList<Query>();
Set<int[]> permutations = permutations(q.getEffectiveOrderBy().size());
for (int[] order : permutations) {
Query newQuery = QueryCloner.cloneQuery(q);
List<Object> orderBy = new ArrayList<Object>(newQuery.getEffectiveOrderBy());
newQuery.clearOrderBy();
for (int i = 0; i < order.length; i++) {
newQuery.addToOrderBy((QueryClass) orderBy.get(order[i]));
}
queryList.add(newQuery);
}
return queryList;
}
代码示例来源:origin: intermine/intermine
Query subQ = null;
subQ = makeQuery(pathQuery, savedBags, origPathToQueryNode, bagQueryRunner, null);
subQ.clearOrderBy();
Map<String, QuerySelectable> newSelect = new LinkedHashMap<String, QuerySelectable>();
Set<QuerySelectable> oldSelect = new HashSet<QuerySelectable>();
代码示例来源:origin: org.intermine/intermine-api
Query subQ = null;
subQ = makeQuery(pathQuery, savedBags, origPathToQueryNode, bagQueryRunner, null);
subQ.clearOrderBy();
Map<String, QuerySelectable> newSelect = new LinkedHashMap<String, QuerySelectable>();
Set<QuerySelectable> oldSelect = new HashSet<QuerySelectable>();
代码示例来源:origin: intermine/intermine
public void testClearOrderBy() {
clearQuery.clearOrderBy();
assertEquals(0, clearQuery.getOrderBy().size());
}
代码示例来源:origin: intermine/intermine
query.clearOrderBy();
query.clearSelect();
QueryNode qn = (QueryNode) pathToQueryNode.get(groupBy);
代码示例来源:origin: org.intermine/intermine-api
query.clearOrderBy();
query.clearSelect();
QueryNode qn = (QueryNode) pathToQueryNode.get(groupBy);
代码示例来源:origin: org.intermine/intermine-objectstore
ret.setDistinct(true);
ret.clearOrderBy();
ret.addToOrderBy(qnNew);
return ret;
代码示例来源:origin: intermine/intermine
ret.setDistinct(true);
ret.clearOrderBy();
ret.addToOrderBy(qnNew);
return ret;
内容来源于网络,如有侵权,请联系作者删除!