public class PackedArrayIndexFieldData.PackedArrayEstimator extends Object implements AbstractIndexFieldData.PerValueEstimator
| コンストラクタと説明 |
|---|
PackedArrayEstimator(CircuitBreaker breaker,
IndexNumericFieldData.NumericType type,
String fieldName) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
adjustForNoTerms(long actualUsed)
Adjust the breaker when no terms were actually loaded, but the field
data takes up space regardless.
|
void |
afterLoad(org.apache.lucene.index.TermsEnum termsEnum,
long actualUsed)
Adjusts the breaker based on the aggregated value from the RamAccountingTermsEnum
|
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 PackedArrayEstimator(CircuitBreaker breaker, IndexNumericFieldData.NumericType type, String fieldName)
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
AbstractIndexFieldData.PerValueEstimatorTermsEnum in a
RamAccountingTermsEnum
which will estimate the memory on a per-term basis.beforeLoad インタフェース内 AbstractIndexFieldData.PerValueEstimatorterms - terms to be estimatedIOExceptionpublic void afterLoad(org.apache.lucene.index.TermsEnum termsEnum,
long actualUsed)
afterLoad インタフェース内 AbstractIndexFieldData.PerValueEstimatortermsEnum - terms that were wrapped and loadedactualUsed - actual field data memory usagepublic void adjustForNoTerms(long actualUsed)
actualUsed - bytes actually usedCopyright © 2009–2016. All rights reserved.