Interface BlockLoader.Docs

Enclosing interface:
BlockLoader

public static interface BlockLoader.Docs
A list of documents to load. Documents are always in non-decreasing order.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
    get(int i)
     
    boolean
    Can this vector reference duplicate documents? Some BlockLoaders will run more slowly if this is true.
  • Method Details

    • count

      int count()
    • get

      int get(int i)
    • mayContainDuplicates

      boolean mayContainDuplicates()
      Can this vector reference duplicate documents? Some BlockLoaders will run more slowly if this is true. These BlockLoaders will return incorrect results if there are duplicates and this is false. This exists because of a hierarchy of speeds:
      • We can better optimize some BlockLoaders when they receive BlockLoader.Docss that don't contain duplicates.
      • It's rare that we want to load from duplicate doc ids. We don't need to spend that much time optimizing it.
      • We sometimes really want to load from duplicate doc ids to minimize total amount of loading we have to do in fairly specific cases like resolving dimension values after time series aggregations.