public class ParentChildIndexFieldData.ParentChildEstimator extends Object implements AbstractIndexFieldData.PerValueEstimator
| コンストラクタと説明 |
|---|
ParentChildEstimator(CircuitBreaker breaker,
org.apache.lucene.index.TermsEnum filteredEnum) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 ParentChildEstimator(CircuitBreaker breaker, org.apache.lucene.index.TermsEnum filteredEnum)
public long bytesPerValue(org.apache.lucene.util.BytesRef term)
bytesPerValue インタフェース内 AbstractIndexFieldData.PerValueEstimatorpublic org.apache.lucene.index.TermsEnum beforeLoad(org.apache.lucene.index.Terms terms)
throws IOException
TermsEnum in a
RamAccountingTermsEnum and returns itbeforeLoad インタフェース内 AbstractIndexFieldData.PerValueEstimatorterms - terms to be estimatedIOExceptionpublic void afterLoad(org.apache.lucene.index.TermsEnum termsEnum,
long actualUsed)
afterLoad インタフェース内 AbstractIndexFieldData.PerValueEstimatortermsEnum - terms that were loadedactualUsed - actual field data memory usageCopyright © 2009–2016. All rights reserved.