Class MultiOrdinals

java.lang.Object
org.elasticsearch.index.fielddata.ordinals.Ordinals
org.elasticsearch.index.fielddata.ordinals.MultiOrdinals
All Implemented Interfaces:
org.apache.lucene.util.Accountable

public class MultiOrdinals extends Ordinals
Ordinals implementation which is efficient at storing field data ordinals for multi-valued or sparse fields.
  • Constructor Details

    • MultiOrdinals

      public MultiOrdinals(OrdinalsBuilder builder, float acceptableOverheadRatio)
  • Method Details

    • significantlySmallerThanSinglePackedOrdinals

      public static boolean significantlySmallerThanSinglePackedOrdinals(int maxDoc, int numDocsWithValue, long numOrds, float acceptableOverheadRatio)
      Return true if this impl is going to be smaller than SinglePackedOrdinals by at least 20%.
    • ramBytesUsed

      public long ramBytesUsed()
      Description copied from class: Ordinals
      The memory size this ordinals take.
      Specified by:
      ramBytesUsed in interface org.apache.lucene.util.Accountable
      Specified by:
      ramBytesUsed in class Ordinals
    • getChildResources

      public Collection<org.apache.lucene.util.Accountable> getChildResources()
    • ordinals

      public org.apache.lucene.index.SortedSetDocValues ordinals(Ordinals.ValuesHolder values)
      Specified by:
      ordinals in class Ordinals