Class SequentialWriterOption

java.lang.Object
org.apache.cassandra.io.util.SequentialWriterOption

public class SequentialWriterOption extends Object
SequentialWriter option
  • Field Details

    • DEFAULT

      public static final SequentialWriterOption DEFAULT
      Default write option.
      • buffer size: 64 KiB
      • buffer type: on heap
      • trickle fsync: false
      • trickle fsync byte interval: 10 MiB
      • finish on close: false
    • FINISH_ON_CLOSE

      public static final SequentialWriterOption FINISH_ON_CLOSE
  • Method Details

    • newBuilder

      public static SequentialWriterOption.Builder newBuilder()
    • bufferSize

      public int bufferSize()
    • bufferType

      public BufferType bufferType()
    • trickleFsync

      public boolean trickleFsync()
    • trickleFsyncByteInterval

      public int trickleFsyncByteInterval()
    • finishOnClose

      public boolean finishOnClose()
    • allocateBuffer

      public ByteBuffer allocateBuffer()
      Allocate buffer using set buffer type and buffer size.
      Returns:
      allocated ByteBuffer