SpinningDiskOptimizationStrategy (apache-cassandra API)
Date: 2018-02-14

org.apache.cassandra.io.util

## Class SpinningDiskOptimizationStrategy

- java.lang.Object
- - org.apache.cassandra.io.util.SpinningDiskOptimizationStrategy

- All Implemented Interfaces:
    DiskOptimizationStrategy

      public class SpinningDiskOptimizationStrategy
      extends java.lang.Object
      implements 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
    Constructor and Description
    `SpinningDiskOptimizationStrategy()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `bufferSize(long recordSize)` For spinning disks always add one page.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.cassandra.io.util.DiskOptimizationStrategy

      `roundBufferSize, roundForCaching`

- - ### Constructor Detail

    - #### SpinningDiskOptimizationStrategy

          public SpinningDiskOptimizationStrategy()

  - ### Method Detail

    - #### bufferSize

          public int bufferSize(long recordSize)

      For spinning disks always add one page.
      Specified by:
        `bufferSize` in interface `DiskOptimizationStrategy`
      Parameters:
        `recordSize` - record size
      Returns:
        the buffer size for a given record size.

Copyright © 2018 The Apache Software Foundation