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

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

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

Operations.getLiveStatesFromInitial介绍

[英]Returns bitset marking states reachable from the initial state.
[中]返回从初始状态可到达的位集标记状态。

代码示例

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

相关文章