Package org.apache.cassandra.io.util
Class SequentialWriterOption
java.lang.Object
org.apache.cassandra.io.util.SequentialWriterOption
SequentialWriter option
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SequentialWriterOptionDefault write option.static final SequentialWriterOption -
Method Summary
Modifier and TypeMethodDescriptionAllocate buffer using set buffer type and buffer size.intbooleanbooleanint
-
Field Details
-
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
-
-
Method Details
-
newBuilder
-
bufferSize
public int bufferSize() -
bufferType
-
trickleFsync
public boolean trickleFsync() -
trickleFsyncByteInterval
public int trickleFsyncByteInterval() -
finishOnClose
public boolean finishOnClose() -
allocateBuffer
Allocate buffer using set buffer type and buffer size.- Returns:
- allocated ByteBuffer
-