Class IndicesFieldDataCache.FieldDataWeigher
java.lang.Object
org.opensearch.indices.fielddata.cache.IndicesFieldDataCache.FieldDataWeigher
- All Implemented Interfaces:
ToLongBiFunction<IndicesFieldDataCache.Key,
org.apache.lucene.util.Accountable>
- Enclosing class:
- IndicesFieldDataCache
public static class IndicesFieldDataCache.FieldDataWeigher
extends Object
implements ToLongBiFunction<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>
Computes a weight based on ramBytesUsed
- Opensearch.internal:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
applyAsLong
(IndicesFieldDataCache.Key key, org.apache.lucene.util.Accountable ramUsage)
-
Constructor Details
-
FieldDataWeigher
public FieldDataWeigher()
-
-
Method Details
-
applyAsLong
- Specified by:
applyAsLong
in interfaceToLongBiFunction<IndicesFieldDataCache.Key,
org.apache.lucene.util.Accountable>
-