Package org.apache.cassandra.io.util
Class SsdDiskOptimizationStrategy
java.lang.Object
org.apache.cassandra.io.util.SsdDiskOptimizationStrategy
- All Implemented Interfaces:
DiskOptimizationStrategy
-
Field Summary
Fields inherited from interface org.apache.cassandra.io.util.DiskOptimizationStrategy
MAX_BUFFER_SIZE, MIN_BUFFER_SIZE, MIN_BUFFER_SIZE_MASK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbufferSize(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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.io.util.DiskOptimizationStrategy
roundBufferSize
-
Constructor Details
-
SsdDiskOptimizationStrategy
public SsdDiskOptimizationStrategy(double diskOptimizationPageCrossChance)
-
-
Method Details
-
bufferSize
public 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.- Specified by:
bufferSizein interfaceDiskOptimizationStrategy- Parameters:
recordSize- record size- Returns:
- the buffer size for a given record size.
- See Also:
-