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

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

java 2次浏览

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

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

示例1: OrQuery

点赞 2

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

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

示例2: AndQuery

点赞 2

import org.apache.lucene.queryparser.surround.query.AndQuery; //导入依赖的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

示例3: OrQuery

点赞 2

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

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

示例4: AndQuery

点赞 2

import org.apache.lucene.queryparser.surround.query.AndQuery; //导入依赖的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

示例5: getAndQuery

点赞 2

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

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


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