public final class IndexHeapMemoryCostUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static long | estimateMapCost(long size,
               boolean ordered,
               boolean usesCachedQueryableEntries)Estimates the on-heap memory cost of a map backing an index. | 
| static long | estimateValueCost(Object value)Estimates the on-heap memory cost of the given value. | 
public static long estimateValueCost(Object value)
value - the value to estimate the cost of.public static long estimateMapCost(long size,
                                   boolean ordered,
                                   boolean usesCachedQueryableEntries)
size - the size of the map to estimate the cost
                                  of.ordered - true if the index managing the
                                  map being estimated is ordered, false otherwise.usesCachedQueryableEntries - true if queryable entries indexed
                                  by the associated index are cached, false otherwise.Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.