本文整理了Java中org.opencb.commons.datastore.core.Query.getAsIntegerList
方法的一些代码示例,展示了Query.getAsIntegerList
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getAsIntegerList
方法的具体详情如下:
包路径:org.opencb.commons.datastore.core.Query
类名称:Query
方法名:getAsIntegerList
暂无
代码示例来源:origin: opencb/cellbase
protected void createOrQuery(Query query, String queryParam, String mongoDbField, List<Bson> andBsonList,
QueryValueType queryValueType) {
if (query != null && query.getString(queryParam) != null && !query.getString(queryParam).isEmpty()) {
switch (queryValueType) {
case INTEGER:
createOrQuery(query.getAsIntegerList(queryParam), mongoDbField, andBsonList);
break;
default:
createOrQuery(query.getAsStringList(queryParam), mongoDbField, andBsonList);
}
}
}
代码示例来源:origin: org.opencb.cellbase/cellbase-lib
protected void createOrQuery(Query query, String queryParam, String mongoDbField, List<Bson> andBsonList,
QueryValueType queryValueType) {
if (query != null && query.getString(queryParam) != null && !query.getString(queryParam).isEmpty()) {
switch (queryValueType) {
case INTEGER:
createOrQuery(query.getAsIntegerList(queryParam), mongoDbField, andBsonList);
break;
default:
createOrQuery(query.getAsStringList(queryParam), mongoDbField, andBsonList);
}
}
}
代码示例来源:origin: opencb/opencga
@Override
public Iterator<VariantFileMetadata> iterator(Query query, QueryOptions options) throws IOException {
int studyId = query.getInt(VariantFileMetadataQueryParam.STUDY_ID.key());
List<Integer> fileIds = query.getAsIntegerList(VariantFileMetadataQueryParam.FILE_ID.key());
return iterator(studyId, fileIds, options);
}
代码示例来源:origin: opencb/opencga
if (!query.containsKey(VERSION) || query.getAsIntegerList(VERSION).size() == 1) {
return false;
List<Integer> versionList = query.getAsIntegerList(VERSION);
if (versionList.size() > 1) {
throw new CatalogDBException("Cannot query by more than one version when more than one id type is being queried");
idList = query.getAsStringList(idQueried);
List<Integer> versionList = query.getAsIntegerList(VERSION);
内容来源于网络,如有侵权,请联系作者删除!