Tabnine Logo
DaciukMihovAutomatonBuilder$State.newState
Code IndexAdd Tabnine to your IDE (free)

How to use
newState
method
in
org.apache.lucene.util.automaton.DaciukMihovAutomatonBuilder$State

Best Java code snippets using org.apache.lucene.util.automaton.DaciukMihovAutomatonBuilder$State.newState (Showing top 4 results out of 315)

origin: org.apache.lucene/lucene-core

 /**
  * Add a suffix of <code>current</code> starting at <code>fromIndex</code>
  * (inclusive) to state <code>state</code>.
  */
 private void addSuffix(State state, CharSequence current, int fromIndex) {
  final int len = current.length();
  while (fromIndex < len) {
   int cp = Character.codePointAt(current, fromIndex);
   state = state.newState(cp);
   fromIndex += Character.charCount(cp);
  }
  state.is_final = true;
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

 /**
  * Add a suffix of <code>current</code> starting at <code>fromIndex</code>
  * (inclusive) to state <code>state</code>.
  */
 private void addSuffix(State state, CharSequence current, int fromIndex) {
  final int len = current.length();
  while (fromIndex < len) {
   int cp = Character.codePointAt(current, fromIndex);
   state = state.newState(cp);
   fromIndex += Character.charCount(cp);
  }
  state.is_final = true;
 }
}
origin: org.infinispan/infinispan-embedded-query

 /**
  * Add a suffix of <code>current</code> starting at <code>fromIndex</code>
  * (inclusive) to state <code>state</code>.
  */
 private void addSuffix(State state, CharSequence current, int fromIndex) {
  final int len = current.length();
  while (fromIndex < len) {
   int cp = Character.codePointAt(current, fromIndex);
   state = state.newState(cp);
   fromIndex += Character.charCount(cp);
  }
  state.is_final = true;
 }
}
origin: harbby/presto-connectors

 /**
  * Add a suffix of <code>current</code> starting at <code>fromIndex</code>
  * (inclusive) to state <code>state</code>.
  */
 private void addSuffix(State state, CharSequence current, int fromIndex) {
  final int len = current.length();
  while (fromIndex < len) {
   int cp = Character.codePointAt(current, fromIndex);
   state = state.newState(cp);
   fromIndex += Character.charCount(cp);
  }
  state.is_final = true;
 }
}
org.apache.lucene.util.automatonDaciukMihovAutomatonBuilder$StatenewState

Javadoc

Create a new outgoing transition labeled label and return the newly created target state for this transition.

Popular methods of DaciukMihovAutomatonBuilder$State

  • <init>
  • getState
    Returns the target state of a transition leaving this state and labeled with label. If no such tran
  • hasChildren
    Return true if this state has any children (outgoing transitions).
  • lastChild
    Return the associated state if the most recent transition is labeled withlabel.
  • referenceEquals
    Compare two lists of objects for reference-equality.
  • replaceLastChild
    Replace the last added outgoing transition's target state with the given state.

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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