Class FreqProxTermsWriter.SortingDocsEnum.DocFreqSorter

java.lang.Object
org.apache.lucene.util.Sorter
org.apache.lucene.util.TimSorter
org.apache.lucene.index.FreqProxTermsWriter.SortingDocsEnum.DocFreqSorter
Enclosing class:
FreqProxTermsWriter.SortingDocsEnum

private static final class FreqProxTermsWriter.SortingDocsEnum.DocFreqSorter extends TimSorter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int[]
     
    private int[]
     
    private int[]
     
    private int[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DocFreqSorter(int maxDoc)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected int
    compare(int i, int j)
    Compare entries found in slots i and j.
    protected int
    compareSaved(int i, int j)
    Compare element i from the temporary storage with element j from the slice to sort, similarly to Sorter.compare(int, int).
    protected void
    copy(int src, int dest)
    Copy data from slot src to slot dest.
    void
    reset(int[] docs, int[] freqs)
     
    protected void
    restore(int i, int j)
    Restore element j from the temporary storage into slot i.
    protected void
    save(int i, int len)
    Save all elements between slots i and i+len into the temporary storage.
    protected void
    swap(int i, int j)
    Swap values at slots i and j.

    Methods inherited from class org.apache.lucene.util.TimSorter

    sort

    Methods inherited from class org.apache.lucene.util.Sorter

    comparePivot, setPivot

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • docs

      private int[] docs
    • freqs

      private int[] freqs
    • tmpDocs

      private int[] tmpDocs
    • tmpFreqs

      private int[] tmpFreqs
  • Constructor Details

    • DocFreqSorter

      DocFreqSorter(int maxDoc)
  • Method Details

    • reset

      public void reset(int[] docs, int[] freqs)
    • compare

      protected int compare(int i, int j)
      Description copied from class: Sorter
      Compare entries found in slots i and j. The contract for the returned value is the same as Comparator.compare(Object, Object).
      Specified by:
      compare in class Sorter
    • swap

      protected void swap(int i, int j)
      Description copied from class: Sorter
      Swap values at slots i and j.
      Specified by:
      swap in class Sorter
    • copy

      protected void copy(int src, int dest)
      Description copied from class: TimSorter
      Copy data from slot src to slot dest.
      Specified by:
      copy in class TimSorter
    • save

      protected void save(int i, int len)
      Description copied from class: TimSorter
      Save all elements between slots i and i+len into the temporary storage.
      Specified by:
      save in class TimSorter
    • restore

      protected void restore(int i, int j)
      Description copied from class: TimSorter
      Restore element j from the temporary storage into slot i.
      Specified by:
      restore in class TimSorter
    • compareSaved

      protected int compareSaved(int i, int j)
      Description copied from class: TimSorter
      Compare element i from the temporary storage with element j from the slice to sort, similarly to Sorter.compare(int, int).
      Specified by:
      compareSaved in class TimSorter