congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
TimSorter.mergeHi
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.lucene.util.TimSorter.mergeHi (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.utilTimSortermergeHi

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

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JList (javax.swing)
  • Sublime Text for Python
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