public class PackedArrayIndexFieldData.PackedArrayEstimator extends Objectimplements AbstractIndexFieldData .PerValueEstimator
| Constructor and Description |
|---|
PackedArrayEstimator(CircuitBreaker
|
| Modifier and Type | Method and Description |
|---|---|
void |
adjustForNoTerms(long actualUsed)
Adjust the breaker when no terms were actually loaded, but the field data takes up space regardless.
|
void |
afterLoad(org
Adjusts the breaker based on the aggregated value from the RamAccountingTermsEnum
|
org |
beforeLoad(org
Execute any pre-loading estimations for the terms.
|
long |
bytesPerValue(org
|
public PackedArrayEstimator(CircuitBreakerbreaker, IndexNumericFieldData .NumericType type, String fieldName)
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(org.apache .lucene .index .TermsEnum termsEnum, long actualUsed)
afterLoad in interface
AbstractIndexFieldData.PerValueEstimator
termsEnum - terms that were wrapped and loaded
actualUsed - actual field data memory usage
public void adjustForNoTerms(long actualUsed)
actualUsed - bytes actually used