IndexSorter.ComparableProvider (Lucene 10.5.0 core API)
Description: declaration: package: org.apache.lucene.index, interface: IndexSorter, interface: ComparableProvider

Package org.apache.lucene.index

# Interface IndexSorter.ComparableProvider

Enclosing interface:
  `IndexSorter`

public static interface IndexSorter.ComparableProvider
Used for sorting documents across segments

- ## Method Summary

  Modifier and Type
  Method
  Description
  `long`
  `getAsComparableLong(int docID)`
  Returns a long so that the natural ordering of long values matches the ordering of doc IDs for the given comparator

- ## Method Details

  - ### getAsComparableLong

    long getAsComparableLong(int docID) throws IOException
    Returns a long so that the natural ordering of long values matches the ordering of doc IDs for the given comparator
    Throws:
      `IOException`