本文整理了Java中org.apache.lucene.util.automaton.Operations.isEmpty()
方法的一些代码示例,展示了Operations.isEmpty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operations.isEmpty()
方法的具体详情如下:
包路径:org.apache.lucene.util.automaton.Operations
类名称:Operations
方法名:isEmpty
[英]Returns true if the given automaton accepts no strings.
[中]如果给定的自动机不接受任何字符串,则返回true。
代码示例来源:origin: org.apache.lucene/lucene-core
/**
* Returns a (deterministic) automaton that accepts the intersection of the
* language of <code>a1</code> and the complement of the language of
* <code>a2</code>. As a side-effect, the automata may be determinized, if not
* already deterministic.
* <p>
* Complexity: quadratic in number of states if a2 already deterministic and
* exponential in number of a2's states otherwise.
*/
static public Automaton minus(Automaton a1, Automaton a2, int maxDeterminizedStates) {
if (Operations.isEmpty(a1) || a1 == a2) {
return Automata.makeEmpty();
}
if (Operations.isEmpty(a2)) {
return a1;
}
return intersection(a1, complement(a2, maxDeterminizedStates));
}
代码示例来源:origin: org.apache.lucene/lucene-core
return isEmpty(a1);
代码示例来源:origin: org.apache.lucene/lucene-core
if (Operations.isEmpty(a)) {
return new Automaton();
代码示例来源:origin: org.apache.lucene/lucene-core
if (Operations.isEmpty(automaton)) {
代码示例来源:origin: harbby/presto-connectors
/**
* Returns a (deterministic) automaton that accepts the intersection of the
* language of <code>a1</code> and the complement of the language of
* <code>a2</code>. As a side-effect, the automata may be determinized, if not
* already deterministic.
* <p>
* Complexity: quadratic in number of states if a2 already deterministic and
* exponential in number of a2's states otherwise.
*/
static public Automaton minus(Automaton a1, Automaton a2, int maxDeterminizedStates) {
if (Operations.isEmpty(a1) || a1 == a2) {
return Automata.makeEmpty();
}
if (Operations.isEmpty(a2)) {
return a1;
}
return intersection(a1, complement(a2, maxDeterminizedStates));
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene
/**
* Returns a (deterministic) automaton that accepts the intersection of the
* language of <code>a1</code> and the complement of the language of
* <code>a2</code>. As a side-effect, the automata may be determinized, if not
* already deterministic.
* <p>
* Complexity: quadratic in number of states if a2 already deterministic and
* exponential in number of a2's states otherwise.
*/
static public Automaton minus(Automaton a1, Automaton a2, int maxDeterminizedStates) {
if (Operations.isEmpty(a1) || a1 == a2) {
return Automata.makeEmpty();
}
if (Operations.isEmpty(a2)) {
return a1;
}
return intersection(a1, complement(a2, maxDeterminizedStates));
}
代码示例来源:origin: org.infinispan/infinispan-embedded-query
/**
* Returns a (deterministic) automaton that accepts the intersection of the
* language of <code>a1</code> and the complement of the language of
* <code>a2</code>. As a side-effect, the automata may be determinized, if not
* already deterministic.
* <p>
* Complexity: quadratic in number of states if a2 already deterministic and
* exponential in number of a2's states otherwise.
*/
static public Automaton minus(Automaton a1, Automaton a2, int maxDeterminizedStates) {
if (Operations.isEmpty(a1) || a1 == a2) {
return Automata.makeEmpty();
}
if (Operations.isEmpty(a2)) {
return a1;
}
return intersection(a1, complement(a2, maxDeterminizedStates));
}
代码示例来源:origin: harbby/presto-connectors
return isEmpty(a1);
代码示例来源:origin: org.apache.lucene/lucene-sandbox
public Query rewrite(IndexReader reader) throws IOException {
if (Operations.isEmpty(det)) {
return new MatchNoDocsQuery();
代码示例来源:origin: org.infinispan/infinispan-embedded-query
return isEmpty(a1);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene
return isEmpty(a1);
代码示例来源:origin: org.infinispan/infinispan-embedded-query
if (Operations.isEmpty(a)) {
return new Automaton();
代码示例来源:origin: harbby/presto-connectors
if (Operations.isEmpty(a)) {
return new Automaton();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene
if (Operations.isEmpty(a)) {
return new Automaton();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene
if (Operations.isEmpty(automaton)) {
代码示例来源:origin: org.infinispan/infinispan-embedded-query
if (Operations.isEmpty(automaton)) {
代码示例来源:origin: harbby/presto-connectors
if (Operations.isEmpty(automaton)) {
内容来源于网络,如有侵权,请联系作者删除!