public class SsdDiskOptimizationStrategy extends java.lang.Object implements DiskOptimizationStrategy
MAX_BUFFER_SIZE, MIN_BUFFER_SIZE, MIN_BUFFER_SIZE_MASK
Constructor and Description |
---|
SsdDiskOptimizationStrategy(double diskOptimizationPageCrossChance) |
Modifier and Type | Method and Description |
---|---|
int |
bufferSize(long recordSize)
For solid state disks only add one page if the chance of crossing to the next page is more
than a predifined value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
roundBufferSize, roundForCaching
public SsdDiskOptimizationStrategy(double diskOptimizationPageCrossChance)
public int bufferSize(long recordSize)
bufferSize
in interface DiskOptimizationStrategy
recordSize
- record sizeConfig.disk_optimization_page_cross_chance
Copyright © 2009-2022 The Apache Software Foundation