Tabnine Logo
FiniteStringsIterator$PathNode
Code IndexAdd Tabnine to your IDE (free)

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

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

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.apache.lucene/lucene-core

int label = node.nextLabel(a);
if (label != -1) {
 string.setIntAt(depth - 1, label);
  nodes[depth].resetState(a, to);
  depth++;
  string.setLength(depth);
origin: harbby/presto-connectors

int label = node.nextLabel(a);
if (label != -1) {
 string.setIntAt(depth - 1, label);
  nodes[depth].resetState(a, to);
  depth++;
  string.setLength(depth);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

int label = node.nextLabel(a);
if (label != -1) {
 string.setIntAt(depth - 1, label);
  nodes[depth].resetState(a, to);
  depth++;
  string.setLength(depth);
origin: org.infinispan/infinispan-embedded-query

int label = node.nextLabel(a);
if (label != -1) {
 string.setIntAt(depth - 1, label);
  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);
 }
}
origin: harbby/presto-connectors

/**
 * Grow path stack, if required.
 */
private void growStack(int depth) {
 if (nodes.length == depth) {
  PathNode[] newNodes = new PathNode[ArrayUtil.oversize(nodes.length + 1, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(nodes, 0, newNodes, 0, nodes.length);
  for (int i = depth, end = newNodes.length; i < end; i++) {
   newNodes[i] = new PathNode();
  }
  nodes = newNodes;
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

/**
 * Grow path stack, if required.
 */
private void growStack(int depth) {
 if (nodes.length == depth) {
  PathNode[] newNodes = new PathNode[ArrayUtil.oversize(nodes.length + 1, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(nodes, 0, newNodes, 0, nodes.length);
  for (int i = depth, end = newNodes.length; i < end; i++) {
   newNodes[i] = new PathNode();
  }
  nodes = newNodes;
 }
}
origin: org.infinispan/infinispan-embedded-query

/**
 * Grow path stack, if required.
 */
private void growStack(int depth) {
 if (nodes.length == depth) {
  PathNode[] newNodes = new PathNode[ArrayUtil.oversize(nodes.length + 1, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(nodes, 0, newNodes, 0, nodes.length);
  for (int i = depth, end = newNodes.length; i < end; i++) {
   newNodes[i] = new PathNode();
  }
  nodes = newNodes;
 }
}
origin: org.apache.lucene/lucene-core

/**
 * Grow path stack, if required.
 */
private void growStack(int depth) {
 if (nodes.length == depth) {
  PathNode[] newNodes = new PathNode[ArrayUtil.oversize(nodes.length + 1, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
  System.arraycopy(nodes, 0, newNodes, 0, nodes.length);
  for (int i = depth, end = newNodes.length; i < end; i++) {
   newNodes[i] = new PathNode();
  }
  nodes = newNodes;
 }
}
org.apache.lucene.util.automatonFiniteStringsIterator$PathNode

Javadoc

Nodes for path stack.

Most used methods

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Path (java.nio.file)
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
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