Tabnine Logo
TimSorter.runLen
Code IndexAdd Tabnine to your IDE (free)

How to use
runLen
method
in
org.apache.lucene.util.TimSorter

Best Java code snippets using org.apache.lucene.util.TimSorter.runLen (Showing top 4 results out of 315)

origin: org.apache.lucene/lucene-core

void ensureInvariants() {
 while (stackSize > 1) {
  final int runLen0 = runLen(0);
  final int runLen1 = runLen(1);
  if (stackSize > 2) {
   final int runLen2 = runLen(2);
   if (runLen2 <= runLen1 + runLen0) {
    // merge the smaller of 0 and 2 with 1
    if (runLen2 < runLen0) {
     mergeAt(1);
    } else {
     mergeAt(0);
    }
    continue;
   }
  }
  if (runLen1 <= runLen0) {
   mergeAt(0);
   continue;
  }
  break;
 }
}
origin: org.infinispan/infinispan-embedded-query

void ensureInvariants() {
 while (stackSize > 1) {
  final int runLen0 = runLen(0);
  final int runLen1 = runLen(1);
  if (stackSize > 2) {
   final int runLen2 = runLen(2);
   if (runLen2 <= runLen1 + runLen0) {
    // merge the smaller of 0 and 2 with 1
    if (runLen2 < runLen0) {
     mergeAt(1);
    } else {
     mergeAt(0);
    }
    continue;
   }
  }
  if (runLen1 <= runLen0) {
   mergeAt(0);
   continue;
  }
  break;
 }
}
origin: harbby/presto-connectors

void ensureInvariants() {
 while (stackSize > 1) {
  final int runLen0 = runLen(0);
  final int runLen1 = runLen(1);
  if (stackSize > 2) {
   final int runLen2 = runLen(2);
   if (runLen2 <= runLen1 + runLen0) {
    // merge the smaller of 0 and 2 with 1
    if (runLen2 < runLen0) {
     mergeAt(1);
    } else {
     mergeAt(0);
    }
    continue;
   }
  }
  if (runLen1 <= runLen0) {
   mergeAt(0);
   continue;
  }
  break;
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

void ensureInvariants() {
 while (stackSize > 1) {
  final int runLen0 = runLen(0);
  final int runLen1 = runLen(1);
  if (stackSize > 2) {
   final int runLen2 = runLen(2);
   if (runLen2 <= runLen1 + runLen0) {
    // merge the smaller of 0 and 2 with 1
    if (runLen2 < runLen0) {
     mergeAt(1);
    } else {
     mergeAt(0);
    }
    continue;
   }
  }
  if (runLen1 <= runLen0) {
   mergeAt(0);
   continue;
  }
  break;
 }
}
org.apache.lucene.utilTimSorterrunLen

Popular methods of TimSorter

  • binarySort
  • checkRange
  • compare
  • compareSaved
    Compare element i from the temporary storage with elementj from the slice to sort, similarly to #com
  • copy
    Copy data from slot src to slot dest.
  • ensureInvariants
  • exhaustStack
  • lower2
  • lowerSaved
  • lowerSaved3
  • merge
  • mergeAt
  • merge,
  • mergeAt,
  • mergeHi,
  • mergeInPlace,
  • mergeLo,
  • minRun,
  • nextRun,
  • pushRunLen,
  • reset,
  • restore

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • findViewById (Activity)
  • setContentView (Activity)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Reference (javax.naming)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 25 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