Codota Logo
TimSorter.runLen
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now