Codota Logo
FiniteStringsIterator$PathNode.resetState
Code IndexAdd Codota to your IDE (free)

How to use
resetState
method
in
org.apache.lucene.util.automaton.FiniteStringsIterator$PathNode

Best Java code snippets using org.apache.lucene.util.automaton.FiniteStringsIterator$PathNode.resetState (Showing top 8 results out of 315)

  • Common ways to obtain FiniteStringsIterator$PathNode
private void myMethod () {
FiniteStringsIterator$PathNode f =
  • Codota Iconnew PathNode()
  • Smart code suggestions by Codota
}
origin: org.apache.lucene/lucene-core

nodes[depth].resetState(a, to);
depth++;
string.setLength(depth);
origin: org.apache.lucene/lucene-core

/**
 * Constructor.
 *
 * @param a Automaton to create finite string from.
 * @param startState The starting state for each path.
 * @param endState The state where each path should stop or -1 if only accepted states should be final.
 */
public FiniteStringsIterator(Automaton a, int startState, int endState) {
 this.a = a;
 this.endState = endState;
 this.nodes = new PathNode[16];
 for (int i = 0, end = nodes.length; i < end; i++) {
  nodes[i] = new PathNode();
 }
 this.string = new IntsRefBuilder();
 this.pathStates = new BitSet(a.getNumStates());
 this.string.setLength(0);
 this.emitEmptyString = a.isAccept(0);
 // Start iteration with node startState.
 if (a.getNumTransitions(startState) > 0) {
  pathStates.set(startState);
  nodes[0].resetState(a, startState);
  string.append(startState);
 }
}
origin: org.infinispan/infinispan-embedded-query

nodes[depth].resetState(a, to);
depth++;
string.setLength(depth);
origin: org.infinispan/infinispan-embedded-query

/**
 * Constructor.
 *
 * @param a Automaton to create finite string from.
 */
public FiniteStringsIterator(Automaton a) {
 this.a = a;
 this.nodes = new PathNode[16];
 for (int i = 0, end = nodes.length; i < end; i++) {
  nodes[i] = new PathNode();
 }
 this.string = new IntsRefBuilder();
 this.pathStates = new BitSet(a.getNumStates());
 this.string.setLength(0);
 this.emitEmptyString = a.isAccept(0);
 // Start iteration with node 0.
 if (a.getNumTransitions(0) > 0) {
  pathStates.set(0);
  nodes[0].resetState(a, 0);
  string.append(0);
 }
}
origin: harbby/presto-connectors

/**
 * Constructor.
 *
 * @param a Automaton to create finite string from.
 */
public FiniteStringsIterator(Automaton a) {
 this.a = a;
 this.nodes = new PathNode[16];
 for (int i = 0, end = nodes.length; i < end; i++) {
  nodes[i] = new PathNode();
 }
 this.string = new IntsRefBuilder();
 this.pathStates = new BitSet(a.getNumStates());
 this.string.setLength(0);
 this.emitEmptyString = a.isAccept(0);
 // Start iteration with node 0.
 if (a.getNumTransitions(0) > 0) {
  pathStates.set(0);
  nodes[0].resetState(a, 0);
  string.append(0);
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

/**
 * Constructor.
 *
 * @param a Automaton to create finite string from.
 * @param startState The starting state for each path.
 * @param endState The state where each path should stop or -1 if only accepted states should be final.
 */
public FiniteStringsIterator(Automaton a, int startState, int endState) {
 this.a = a;
 this.endState = endState;
 this.nodes = new PathNode[16];
 for (int i = 0, end = nodes.length; i < end; i++) {
  nodes[i] = new PathNode();
 }
 this.string = new IntsRefBuilder();
 this.pathStates = new BitSet(a.getNumStates());
 this.string.setLength(0);
 this.emitEmptyString = a.isAccept(0);
 // Start iteration with node startState.
 if (a.getNumTransitions(startState) > 0) {
  pathStates.set(startState);
  nodes[0].resetState(a, startState);
  string.append(startState);
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

nodes[depth].resetState(a, to);
depth++;
string.setLength(depth);
origin: harbby/presto-connectors

nodes[depth].resetState(a, to);
depth++;
string.setLength(depth);
org.apache.lucene.util.automatonFiniteStringsIterator$PathNoderesetState

Popular methods of FiniteStringsIterator$PathNode

  • <init>
  • nextLabel
    Returns next label of current transition, or advances to next transition and returns its first label

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now