Package org.apache.cassandra.io.util
Class SequentialWriterOption
- java.lang.Object
-
- org.apache.cassandra.io.util.SequentialWriterOption
-
public class SequentialWriterOption extends java.lang.Object
SequentialWriter option
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SequentialWriterOption.Builder
-
Field Summary
Fields Modifier and Type Field Description static SequentialWriterOption
DEFAULT
Default write option.static SequentialWriterOption
FINISH_ON_CLOSE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
allocateBuffer()
Allocate buffer using set buffer type and buffer size.int
bufferSize()
BufferType
bufferType()
boolean
finishOnClose()
static SequentialWriterOption.Builder
newBuilder()
boolean
trickleFsync()
int
trickleFsyncByteInterval()
-
-
-
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
-
-