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, waitroundBufferSize, roundForCachingpublic SsdDiskOptimizationStrategy(double diskOptimizationPageCrossChance)
public int bufferSize(long recordSize)
bufferSize in interface DiskOptimizationStrategyrecordSize - record sizeConfig.disk_optimization_page_cross_chanceCopyright © 2018 The Apache Software Foundation