public class NonEstimatingEstimator extends java.lang.Object implements AbstractIndexFieldData.PerValueEstimator
Modifier and Type | Method and Description |
---|---|
void |
afterLoad(org.apache.lucene.index.TermsEnum termsEnum,
long actualUsed)
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.apache.lucene.index.TermsEnum |
beforeLoad(org.apache.lucene.index.Terms terms)
Execute any pre-loading estimations for the terms.
|
long |
bytesPerValue(org.apache.lucene.util.BytesRef term) |
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 java.io.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 estimatedjava.io.IOException
public void afterLoad(@Nullable org.apache.lucene.index.TermsEnum termsEnum, long actualUsed)
AbstractIndexFieldData.PerValueEstimator
afterLoad
in interface AbstractIndexFieldData.PerValueEstimator
termsEnum
- terms that were loadedactualUsed
- actual field data memory usage