public class ParentChildIndexFieldData.ParentChildEstimator extends Object implements AbstractIndexFieldData.PerValueEstimator
| Constructor and Description |
|---|
ParentChildIndexFieldData.ParentChildEstimator(CircuitBreaker breaker,
org.apache.lucene.index.TermsEnum filteredEnum) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterLoad(org.apache.lucene.index.TermsEnum termsEnum,
long actualUsed)
Adjusts the breaker based on the difference between the actual usage
and the aggregated estimations.
|
org.apache.lucene.index.TermsEnum |
beforeLoad(org.apache.lucene.index.Terms terms)
Wraps the already filtered
TermsEnum in a
RamAccountingTermsEnum and returns it |
long |
bytesPerValue(org.apache.lucene.util.BytesRef term)
General overhead for ids is 2 times the length of the ID
|
public ParentChildIndexFieldData.ParentChildEstimator(CircuitBreaker breaker, org.apache.lucene.index.TermsEnum filteredEnum)
public long bytesPerValue(org.apache.lucene.util.BytesRef term)
bytesPerValue in interface AbstractIndexFieldData.PerValueEstimatorpublic org.apache.lucene.index.TermsEnum beforeLoad(org.apache.lucene.index.Terms terms)
throws IOException
TermsEnum in a
RamAccountingTermsEnum and returns itbeforeLoad in interface AbstractIndexFieldData.PerValueEstimatorterms - terms to be estimatedIOExceptionpublic void afterLoad(org.apache.lucene.index.TermsEnum termsEnum,
long actualUsed)
afterLoad in interface AbstractIndexFieldData.PerValueEstimatortermsEnum - terms that were loadedactualUsed - actual field data memory usageCopyright © 2009–2016. All rights reserved.