Class PackedArrayIndexFieldData.PackedArrayEstimator

    • Method Detail

      • afterLoad

        public void afterLoad(org.apache.lucene.index.TermsEnum termsEnum,
                              long actualUsed)
        Adjusts the breaker based on the aggregated value from the RamAccountingTermsEnum
        Specified by:
        afterLoad in interface  AbstractIndexFieldData.PerValueEstimator
        Parameters:
        termsEnum - terms that were wrapped and loaded
        actualUsed - actual field data memory usage
      • adjustForNoTerms

        public void adjustForNoTerms(long actualUsed)
        Adjust the breaker when no terms were actually loaded, but the field data takes up space regardless. For instance, when ordinals are used.
        Parameters:
        actualUsed - bytes actually used