• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java NotQuery类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.apache.lucene.queryparser.surround.query.NotQuery的典型用法代码示例。如果您正苦于以下问题:Java NotQuery类的具体用法?Java NotQuery怎么用?Java NotQuery使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

NotQuery类属于org.apache.lucene.queryparser.surround.query包,在下文中一共展示了NotQuery类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: AndQuery

点赞 2

import org.apache.lucene.queryparser.surround.query.NotQuery; //导入依赖的package包/类
final public SrndQuery AndQuery() throws ParseException {
SrndQuery q;
ArrayList<SrndQuery> queries = null;
Token oprt = null;
  q = NotQuery();
  label_3:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case AND:
      ;
      break;
    default:
      jj_la1[1] = jj_gen;
      break label_3;
    }
    oprt = jj_consume_token(AND);
                 /* keep only last used operator */
    if (queries == null) {
      queries = new ArrayList<>();
      queries.add(q);
    }
    q = NotQuery();
    queries.add(q);
  }
 {if (true) return (queries == null) ? q : getAndQuery(queries, true /* infix */, oprt);}
  throw new Error("Missing return statement in function");
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:28,
代码来源:QueryParser.java

示例2: NotQuery

点赞 2

import org.apache.lucene.queryparser.surround.query.NotQuery; //导入依赖的package包/类
final public SrndQuery NotQuery() throws ParseException {
SrndQuery q;
ArrayList<SrndQuery> queries = null;
Token oprt = null;
  q = NQuery();
  label_4:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case NOT:
      ;
      break;
    default:
      jj_la1[2] = jj_gen;
      break label_4;
    }
    oprt = jj_consume_token(NOT);
                  /* keep only last used operator */
    if (queries == null) {
      queries = new ArrayList<>();
      queries.add(q);
    }
    q = NQuery();
    queries.add(q);
  }
 {if (true) return (queries == null) ? q : getNotQuery(queries, oprt);}
  throw new Error("Missing return statement in function");
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:28,
代码来源:QueryParser.java

示例3: AndQuery

点赞 2

import org.apache.lucene.queryparser.surround.query.NotQuery; //导入依赖的package包/类
final public SrndQuery AndQuery() throws ParseException {
SrndQuery q;
ArrayList<SrndQuery> queries = null;
Token oprt = null;
  q = NotQuery();
  label_3:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case AND:
      ;
      break;
    default:
      jj_la1[1] = jj_gen;
      break label_3;
    }
    oprt = jj_consume_token(AND);
                 /* keep only last used operator */
    if (queries == null) {
      queries = new ArrayList<SrndQuery>();
      queries.add(q);
    }
    q = NotQuery();
    queries.add(q);
  }
 {if (true) return (queries == null) ? q : getAndQuery(queries, true /* infix */, oprt);}
  throw new Error("Missing return statement in function");
}
 

开发者ID:pkarmstr,
项目名称:NYBC,
代码行数:28,
代码来源:QueryParser.java

示例4: NotQuery

点赞 2

import org.apache.lucene.queryparser.surround.query.NotQuery; //导入依赖的package包/类
final public SrndQuery NotQuery() throws ParseException {
SrndQuery q;
ArrayList<SrndQuery> queries = null;
Token oprt = null;
  q = NQuery();
  label_4:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case NOT:
      ;
      break;
    default:
      jj_la1[2] = jj_gen;
      break label_4;
    }
    oprt = jj_consume_token(NOT);
                  /* keep only last used operator */
    if (queries == null) {
      queries = new ArrayList<SrndQuery>();
      queries.add(q);
    }
    q = NQuery();
    queries.add(q);
  }
 {if (true) return (queries == null) ? q : getNotQuery(queries, oprt);}
  throw new Error("Missing return statement in function");
}
 

开发者ID:pkarmstr,
项目名称:NYBC,
代码行数:28,
代码来源:QueryParser.java

示例5: getNotQuery

点赞 2

import org.apache.lucene.queryparser.surround.query.NotQuery; //导入依赖的package包/类
protected SrndQuery getNotQuery(List<SrndQuery> queries, Token notToken) {
  return new NotQuery( queries, notToken.image);
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:4,
代码来源:QueryParser.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)