public interface DiskOptimizationStrategy
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_BUFFER_SIZE |
| Modifier and Type | Method and Description |
|---|---|
int |
bufferSize(long recordSize) |
default int |
roundBufferSize(long size)
Round up to the next multiple of 4k but no more than
MAX_BUFFER_SIZE. |
static final int MAX_BUFFER_SIZE
int bufferSize(long recordSize)
recordSize - record sizedefault int roundBufferSize(long size)
MAX_BUFFER_SIZE.Copyright © 2017 The Apache Software Foundation