public class NativeMapEntryCostEstimator extends Object implements com.hazelcast.map.impl.EntryCostEstimator<NativeMemoryData,com.hazelcast.memory.MemoryBlock>
| Constructor and Description |
|---|
NativeMapEntryCostEstimator(HiDensityRecordProcessor recordProcessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustEstimateBy(long adjustment) |
long |
calculateEntryCost(NativeMemoryData key,
com.hazelcast.memory.MemoryBlock record) |
long |
calculateValueCost(com.hazelcast.memory.MemoryBlock record) |
long |
getEstimate() |
void |
reset() |
public NativeMapEntryCostEstimator(HiDensityRecordProcessor recordProcessor)
public long getEstimate()
getEstimate in interface com.hazelcast.map.impl.EntryCostEstimator<NativeMemoryData,com.hazelcast.memory.MemoryBlock>public void adjustEstimateBy(long adjustment)
adjustEstimateBy in interface com.hazelcast.map.impl.EntryCostEstimator<NativeMemoryData,com.hazelcast.memory.MemoryBlock>public void reset()
reset in interface com.hazelcast.map.impl.EntryCostEstimator<NativeMemoryData,com.hazelcast.memory.MemoryBlock>public long calculateValueCost(com.hazelcast.memory.MemoryBlock record)
calculateValueCost in interface com.hazelcast.map.impl.EntryCostEstimator<NativeMemoryData,com.hazelcast.memory.MemoryBlock>public long calculateEntryCost(NativeMemoryData key, com.hazelcast.memory.MemoryBlock record)
calculateEntryCost in interface com.hazelcast.map.impl.EntryCostEstimator<NativeMemoryData,com.hazelcast.memory.MemoryBlock>Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.