本文整理了Java中org.apache.lucene.util.automaton.Operations.getSingleton()
方法的一些代码示例,展示了Operations.getSingleton()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operations.getSingleton()
方法的具体详情如下:
包路径:org.apache.lucene.util.automaton.Operations
类名称:Operations
方法名:getSingleton
[英]If this automaton accepts a single input, return it. Else, return null. The automaton must be deterministic.
[中]如果此自动机接受单个输入,则返回它。否则,返回null。自动机必须是确定性的。
代码示例来源:origin: org.apache.lucene/lucene-core
IntsRef singleton = Operations.getSingleton(automaton);
代码示例来源:origin: org.apache.lucene/lucene-sandbox
IntsRef single = Operations.getSingleton(det);
if (single != null && single.length == 1) {
return new TermQuery(new Term(field, idToTerm.get(single.ints[single.offset])));
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene
IntsRef singleton = Operations.getSingleton(automaton);
代码示例来源:origin: org.infinispan/infinispan-embedded-query
IntsRef singleton = Operations.getSingleton(automaton);
代码示例来源:origin: harbby/presto-connectors
IntsRef singleton = Operations.getSingleton(automaton);
内容来源于网络,如有侵权,请联系作者删除!