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

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

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

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

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • BoxLayout (javax.swing)
  • PhpStorm for WordPress
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