org.opencb.commons.datastore.core.Query.getAsIntegerList()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(142)

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

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);

相关文章