org.apache.lucene.util.automaton.Operations.getLiveStatesToAccept()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(111)

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

Operations.getLiveStatesToAccept介绍

[英]Returns bitset marking states that can reach an accept state.
[中]返回可以达到接受状态的位集标记状态。

代码示例

代码示例来源:origin: org.apache.lucene/lucene-core

  1. /**
  2. * Returns the set of live states. A state is "live" if an accept state is
  3. * reachable from it and if it is reachable from the initial state.
  4. */
  5. private static BitSet getLiveStates(Automaton a) {
  6. BitSet live = getLiveStatesFromInitial(a);
  7. live.and(getLiveStatesToAccept(a));
  8. return live;
  9. }

代码示例来源:origin: org.apache.lucene/lucene-core

  1. /** Returns true if there are dead states that reach an accept state. */
  2. public static boolean hasDeadStatesToAccept(Automaton a) {
  3. BitSet reachableFromInitial = getLiveStatesFromInitial(a);
  4. BitSet reachableFromAccept = getLiveStatesToAccept(a);
  5. reachableFromAccept.andNot(reachableFromInitial);
  6. return reachableFromAccept.isEmpty() == false;
  7. }

代码示例来源:origin: org.apache.lucene/lucene-core

  1. /** Returns true if there are dead states reachable from an initial state. */
  2. public static boolean hasDeadStatesFromInitial(Automaton a) {
  3. BitSet reachableFromInitial = getLiveStatesFromInitial(a);
  4. BitSet reachableFromAccept = getLiveStatesToAccept(a);
  5. reachableFromInitial.andNot(reachableFromAccept);
  6. return reachableFromInitial.isEmpty() == false;
  7. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

  1. /**
  2. * Returns the set of live states. A state is "live" if an accept state is
  3. * reachable from it and if it is reachable from the initial state.
  4. */
  5. private static BitSet getLiveStates(Automaton a) {
  6. BitSet live = getLiveStatesFromInitial(a);
  7. live.and(getLiveStatesToAccept(a));
  8. return live;
  9. }

代码示例来源:origin: org.infinispan/infinispan-embedded-query

  1. /**
  2. * Returns the set of live states. A state is "live" if an accept state is
  3. * reachable from it and if it is reachable from the initial state.
  4. */
  5. private static BitSet getLiveStates(Automaton a) {
  6. BitSet live = getLiveStatesFromInitial(a);
  7. live.and(getLiveStatesToAccept(a));
  8. return live;
  9. }

代码示例来源:origin: harbby/presto-connectors

  1. /**
  2. * Returns the set of live states. A state is "live" if an accept state is
  3. * reachable from it and if it is reachable from the initial state.
  4. */
  5. private static BitSet getLiveStates(Automaton a) {
  6. BitSet live = getLiveStatesFromInitial(a);
  7. live.and(getLiveStatesToAccept(a));
  8. return live;
  9. }

代码示例来源:origin: org.infinispan/infinispan-embedded-query

  1. /** Returns true if there are dead states that reach an accept state. */
  2. public static boolean hasDeadStatesToAccept(Automaton a) {
  3. BitSet reachableFromInitial = getLiveStatesFromInitial(a);
  4. BitSet reachableFromAccept = getLiveStatesToAccept(a);
  5. reachableFromAccept.andNot(reachableFromInitial);
  6. return reachableFromAccept.isEmpty() == false;
  7. }

代码示例来源:origin: org.infinispan/infinispan-embedded-query

  1. /** Returns true if there are dead states reachable from an initial state. */
  2. public static boolean hasDeadStatesFromInitial(Automaton a) {
  3. BitSet reachableFromInitial = getLiveStatesFromInitial(a);
  4. BitSet reachableFromAccept = getLiveStatesToAccept(a);
  5. reachableFromInitial.andNot(reachableFromAccept);
  6. return reachableFromInitial.isEmpty() == false;
  7. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

  1. /** Returns true if there are dead states reachable from an initial state. */
  2. public static boolean hasDeadStatesFromInitial(Automaton a) {
  3. BitSet reachableFromInitial = getLiveStatesFromInitial(a);
  4. BitSet reachableFromAccept = getLiveStatesToAccept(a);
  5. reachableFromInitial.andNot(reachableFromAccept);
  6. return reachableFromInitial.isEmpty() == false;
  7. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

  1. /** Returns true if there are dead states that reach an accept state. */
  2. public static boolean hasDeadStatesToAccept(Automaton a) {
  3. BitSet reachableFromInitial = getLiveStatesFromInitial(a);
  4. BitSet reachableFromAccept = getLiveStatesToAccept(a);
  5. reachableFromAccept.andNot(reachableFromInitial);
  6. return reachableFromAccept.isEmpty() == false;
  7. }

代码示例来源:origin: harbby/presto-connectors

  1. /** Returns true if there are dead states reachable from an initial state. */
  2. public static boolean hasDeadStatesFromInitial(Automaton a) {
  3. BitSet reachableFromInitial = getLiveStatesFromInitial(a);
  4. BitSet reachableFromAccept = getLiveStatesToAccept(a);
  5. reachableFromInitial.andNot(reachableFromAccept);
  6. return reachableFromInitial.isEmpty() == false;
  7. }

代码示例来源:origin: harbby/presto-connectors

  1. /** Returns true if there are dead states that reach an accept state. */
  2. public static boolean hasDeadStatesToAccept(Automaton a) {
  3. BitSet reachableFromInitial = getLiveStatesFromInitial(a);
  4. BitSet reachableFromAccept = getLiveStatesToAccept(a);
  5. reachableFromAccept.andNot(reachableFromInitial);
  6. return reachableFromAccept.isEmpty() == false;
  7. }

相关文章