Tabnine Logo
Operations$PointTransitionSet.next
Code IndexAdd Tabnine to your IDE (free)

How to use
next
method
in
org.apache.lucene.util.automaton.Operations$PointTransitionSet

Best Java code snippets using org.apache.lucene.util.automaton.Operations$PointTransitionSet.next (Showing top 4 results out of 315)

origin: org.apache.lucene/lucene-core

private PointTransitions find(int point) {
 if (useHash) {
  final Integer pi = point;
  PointTransitions p = map.get(pi);
  if (p == null) {
   p = next(point);
   map.put(pi, p);
  }
  return p;
 } else {
  for(int i=0;i<count;i++) {
   if (points[i].point == point) {
    return points[i];
   }
  }
  final PointTransitions p = next(point);
  if (count == HASHMAP_CUTOVER) {
   // switch to HashMap on the fly
   assert map.size() == 0;
   for(int i=0;i<count;i++) {
    map.put(points[i].point, points[i]);
   }
   useHash = true;
  }
  return p;
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

private PointTransitions find(int point) {
 if (useHash) {
  final Integer pi = point;
  PointTransitions p = map.get(pi);
  if (p == null) {
   p = next(point);
   map.put(pi, p);
  }
  return p;
 } else {
  for(int i=0;i<count;i++) {
   if (points[i].point == point) {
    return points[i];
   }
  }
  final PointTransitions p = next(point);
  if (count == HASHMAP_CUTOVER) {
   // switch to HashMap on the fly
   assert map.size() == 0;
   for(int i=0;i<count;i++) {
    map.put(points[i].point, points[i]);
   }
   useHash = true;
  }
  return p;
 }
}
origin: org.infinispan/infinispan-embedded-query

private PointTransitions find(int point) {
 if (useHash) {
  final Integer pi = point;
  PointTransitions p = map.get(pi);
  if (p == null) {
   p = next(point);
   map.put(pi, p);
  }
  return p;
 } else {
  for(int i=0;i<count;i++) {
   if (points[i].point == point) {
    return points[i];
   }
  }
  final PointTransitions p = next(point);
  if (count == HASHMAP_CUTOVER) {
   // switch to HashMap on the fly
   assert map.size() == 0;
   for(int i=0;i<count;i++) {
    map.put(points[i].point, points[i]);
   }
   useHash = true;
  }
  return p;
 }
}
origin: harbby/presto-connectors

private PointTransitions find(int point) {
 if (useHash) {
  final Integer pi = point;
  PointTransitions p = map.get(pi);
  if (p == null) {
   p = next(point);
   map.put(pi, p);
  }
  return p;
 } else {
  for(int i=0;i<count;i++) {
   if (points[i].point == point) {
    return points[i];
   }
  }
  final PointTransitions p = next(point);
  if (count == HASHMAP_CUTOVER) {
   // switch to HashMap on the fly
   assert map.size() == 0;
   for(int i=0;i<count;i++) {
    map.put(points[i].point, points[i]);
   }
   useHash = true;
  }
  return p;
 }
}
org.apache.lucene.util.automatonOperations$PointTransitionSetnext

Popular methods of Operations$PointTransitionSet

  • <init>
  • add
  • find
  • reset
  • sort

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top Vim plugins
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