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

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

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

Query.getBoolean介绍

暂无

代码示例

代码示例来源:origin: opencb/opencga

public static Map<String, List<String>> getSamplesMetadataIfRequested(Query query, QueryOptions options,
                                   StudyConfigurationManager studyConfigurationManager) {
  if (query.getBoolean(SAMPLE_METADATA.key(), false)) {
    return getSamplesMetadata(query, options, studyConfigurationManager);
  } else {
    return null;
  }
}

代码示例来源:origin: opencb/opencga

boolean all = false;
boolean none = false;
boolean gt = query.getBoolean(INCLUDE_GENOTYPE.key(), false);

代码示例来源:origin: opencb/opencga

if (incSamples == null) {
  if (query.getBoolean(VariantQueryParam.INCLUDE_GENOTYPE.key())) {
  if (query.getBoolean(VariantQueryParam.INCLUDE_GENOTYPE.key())) {

代码示例来源:origin: opencb/opencga

if (query.getBoolean(VARIANTS_TO_INDEX.key(), false)) {
  projection.putIfAbsent(INDEX_FIELD, 1);

代码示例来源:origin: org.opencb.commons/commons-datastore-core

break;
case BOOLEAN:
  put(queryParam.key(), getBoolean(queryParam.key()));
  break;
default:

代码示例来源:origin: opencb/opencga

if (query.getBoolean(QueryParams.PROPERLY_PAIRED.key())) {
  alignmentFilters.addProperlyPairedFilter();
if (query.getBoolean(QueryParams.SKIP_UNMAPPED.key())) {
  alignmentFilters.addUnmappedFilter();
if (query.getBoolean(QueryParams.SKIP_DUPLICATED.key())) {
  alignmentFilters.addDuplicatedFilter();

代码示例来源:origin: opencb/opencga

if (query.getBoolean(VARIANTS_TO_INDEX.key(), false)) {
  scanQuery.put(VARIANTS_TO_INDEX.key(), true);
} else if (isValidParam(query, SAMPLE)) {

代码示例来源:origin: opencb/opencga

protected void addAnnotFilters(Query query, Set<Column> dynamicColumns, List<String> filters) {
  if (isValidParam(query, ANNOTATION_EXISTS)) {
    if (query.getBoolean(ANNOTATION_EXISTS.key())) {
      filters.add(VariantColumn.FULL_ANNOTATION + " IS NOT NULL");
    } else {

代码示例来源:origin: opencb/opencga

if (!uidVersionQueryFlag && !queryCopy.getBoolean(Constants.ALL_VERSIONS) && !queryCopy.containsKey(QueryParams.VERSION.key())) {
  if (queryCopy.containsKey(QueryParams.SNAPSHOT.key())) {

代码示例来源:origin: opencb/opencga

if (!uidVersionQueryFlag && !queryCopy.getBoolean(Constants.ALL_VERSIONS) && !queryCopy.containsKey(QueryParams.VERSION.key())) {
  if (queryCopy.containsKey(QueryParams.SNAPSHOT.key())) {

代码示例来源:origin: opencb/opencga

if (!uidVersionQueryFlag && !queryCopy.getBoolean(Constants.ALL_VERSIONS) && !queryCopy.containsKey(QueryParams.VERSION.key())) {
  if (queryCopy.containsKey(QueryParams.SNAPSHOT.key())) {

代码示例来源:origin: opencb/opencga

if (!uidVersionQueryFlag && !queryCopy.getBoolean(Constants.ALL_VERSIONS) && !queryCopy.containsKey(QueryParams.VERSION.key())) {
  if (queryCopy.containsKey(QueryParams.SNAPSHOT.key())) {

代码示例来源:origin: opencb/opencga

if (!query.getBoolean(ANNOTATION_EXISTS.key())) {
if (query.getBoolean(VARIANTS_TO_INDEX.key(), false)) {

代码示例来源:origin: org.opencb.commons/commons-datastore-mongodb

case BOOLEAN:
case BOOLEAN_ARRAY:
  filter = createFilter(mongoDbField, query.getBoolean(queryParam), comparator);
  break;
case DATE:

代码示例来源:origin: opencb/opencga

private void parseAnnotationQueryParams(Query query, QueryBuilder builder) {
  if (query != null) {
    if (isValidParam(query, ANNOTATION_EXISTS)) {
      boolean exists = query.getBoolean(ANNOTATION_EXISTS.key());
      builder.and(DocumentToVariantConverter.ANNOTATION_FIELD + "." + DocumentToVariantAnnotationConverter.ANNOT_ID_FIELD);
      builder.exists(exists);

相关文章