Class MultiOrdinals

  • All Implemented Interfaces:

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

      • MultiOrdinals

        public MultiOrdinals​(OrdinalsBuilder builder,
                             float acceptableOverheadRatio)
    • Method Detail

      • 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 java.util.Collection<org.apache.lucene.util.Accountable> getChildResources()