Tabnine Logo
FiniteStringsIterator$PathNode.resetState
Code IndexAdd Tabnine 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)

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: harbby/presto-connectors

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

nodes[depth].resetState(a, to);
depth++;
string.setLength(depth);
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: 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.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);
 }
}
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

  • Making http post requests using okhttp
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now