java.lang.Object
org.elasticsearch.index.engine.MergeMemoryEstimator
Provides an estimation of the memory needed to merge segments.
This class is a temporary solution until we have a better way to estimate the memory needed for merges in Lucene
(see the corresponding Lucene issue)
We can work iteratively in providing estimations for different types of fields and vector encodings.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longestimateMergeMemory(org.apache.lucene.index.MergePolicy.OneMerge merge, org.apache.lucene.index.IndexReader indexReader) Estimates the memory, in bytes, needed to merge the segments of the given merge.
-
Field Details
-
HNSW_PER_DOC_ESTIMATION
public static final long HNSW_PER_DOC_ESTIMATION- See Also:
-
-
Constructor Details
-
MergeMemoryEstimator
public MergeMemoryEstimator()
-
-
Method Details
-
estimateMergeMemory
public static long estimateMergeMemory(org.apache.lucene.index.MergePolicy.OneMerge merge, org.apache.lucene.index.IndexReader indexReader) Estimates the memory, in bytes, needed to merge the segments of the given merge.
-