public class NonEstimatingEstimator extends Objectimplements AbstractIndexFieldData .PerValueEstimator
| Modifier and Type | Method and Description |
|---|---|
void |
afterLoad(org
Possibly adjust a circuit breaker after field data has been loaded, now that the actual amount of memory used by the field data is known
|
org |
beforeLoad(org
Execute any pre-loading estimations for the terms.
|
long |
bytesPerValue(org
|
public long bytesPerValue(org.apache .lucene .util .BytesRef term)
bytesPerValue in interface
AbstractIndexFieldData.PerValueEstimator
public org.apache .lucene .index .TermsEnum beforeLoad(org .apache .lucene .index .Terms terms) throws IOException
AbstractIndexFieldData.PerValueEstimator
TermsEnum in a
RamAccountingTermsEnum which will estimate the memory on a per-term basis.
beforeLoad in interface
AbstractIndexFieldData.PerValueEstimator
terms - terms to be estimated
IOException -
public void afterLoad(@Nullable org.apache .lucene .index .TermsEnum termsEnum, long actualUsed)
AbstractIndexFieldData.PerValueEstimator
afterLoad in interface
AbstractIndexFieldData.PerValueEstimator
termsEnum - terms that were loaded
actualUsed - actual field data memory usage