Package org.apache.cassandra.io.util
Class SequentialWriterOption
- java.lang.Object
-
- org.apache.cassandra.io.util.SequentialWriterOption
-
public class SequentialWriterOption extends java.lang.ObjectSequentialWriter option
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSequentialWriterOption.Builder
-
Field Summary
Fields Modifier and Type Field Description static SequentialWriterOptionDEFAULTDefault write option.static SequentialWriterOptionFINISH_ON_CLOSE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBufferallocateBuffer()Allocate buffer using set buffer type and buffer size.intbufferSize()BufferTypebufferType()booleanfinishOnClose()static SequentialWriterOption.BuildernewBuilder()booleantrickleFsync()inttrickleFsyncByteInterval()
-
-
-
Field Detail
-
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 Detail
-
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 java.nio.ByteBuffer allocateBuffer()
Allocate buffer using set buffer type and buffer size.- Returns:
- allocated ByteBuffer
-
-