congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TimSorter.mergeLo
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.lucene/lucene-core

void merge(int lo, int mid, int hi) {
 if (compare(mid - 1, mid) <= 0) {
  return;
 }
 lo = upper2(lo, mid, mid);
 hi = lower2(mid, hi, mid - 1);
 if (hi - mid <= mid - lo && hi - mid <= maxTempSlots) {
  mergeHi(lo, mid, hi);
 } else if (mid - lo <= maxTempSlots) {
  mergeLo(lo, mid, hi);
 } else {
  mergeInPlace(lo, mid, hi);
 }
}
origin: harbby/presto-connectors

void merge(int lo, int mid, int hi) {
 if (compare(mid - 1, mid) <= 0) {
  return;
 }
 lo = upper2(lo, mid, mid);
 hi = lower2(mid, hi, mid - 1);
 if (hi - mid <= mid - lo && hi - mid <= maxTempSlots) {
  mergeHi(lo, mid, hi);
 } else if (mid - lo <= maxTempSlots) {
  mergeLo(lo, mid, hi);
 } else {
  mergeInPlace(lo, mid, hi);
 }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

void merge(int lo, int mid, int hi) {
 if (compare(mid - 1, mid) <= 0) {
  return;
 }
 lo = upper2(lo, mid, mid);
 hi = lower2(mid, hi, mid - 1);
 if (hi - mid <= mid - lo && hi - mid <= maxTempSlots) {
  mergeHi(lo, mid, hi);
 } else if (mid - lo <= maxTempSlots) {
  mergeLo(lo, mid, hi);
 } else {
  mergeInPlace(lo, mid, hi);
 }
}
origin: org.infinispan/infinispan-embedded-query

void merge(int lo, int mid, int hi) {
 if (compare(mid - 1, mid) <= 0) {
  return;
 }
 lo = upper2(lo, mid, mid);
 hi = lower2(mid, hi, mid - 1);
 if (hi - mid <= mid - lo && hi - mid <= maxTempSlots) {
  mergeHi(lo, mid, hi);
 } else if (mid - lo <= maxTempSlots) {
  mergeLo(lo, mid, hi);
 } else {
  mergeInPlace(lo, mid, hi);
 }
}
org.apache.lucene.utilTimSortermergeLo

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,
  • minRun,
  • nextRun,
  • pushRunLen,
  • reset,
  • restore

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top 17 Plugins for Android Studio
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