public static final class KeyValueSorter.Options extends Object
KeyValueSorter.| Constructor and Description |
|---|
Options() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockSize()
Returns in-memory block buffer size.
|
int |
getPageSize()
Returns in-memory sort buffer size.
|
File |
getTemporaryDirectory()
Returns the temporary directory for storing spill-out block files.
|
boolean |
isCompressBlock()
Returns whether spill-out block file is compressed or not.
|
KeyValueSorter.Options |
withBufferSize(int bufferSize)
Sets the total buffer size.
|
KeyValueSorter.Options |
withBufferSize(int pageBufferSize,
int blockBufferSize)
Sets individual buffer sizes.
|
KeyValueSorter.Options |
withCompressBlock(boolean enable)
Returns whether spill-out block file is compressed or not.
|
KeyValueSorter.Options |
withTemporaryDirectory(File path)
Sets the temporary directory for the sorter.
|
public int getPageSize()
public int getBlockSize()
public File getTemporaryDirectory()
null if it is not setpublic boolean isCompressBlock()
true if compress block files, otherwise falsepublic KeyValueSorter.Options withBufferSize(int bufferSize)
bufferSize - the total buffer sizepublic KeyValueSorter.Options withBufferSize(int pageBufferSize, int blockBufferSize)
pageBufferSize - in-memory sort buffer sizeblockBufferSize - in-memory block buffer sizepublic KeyValueSorter.Options withTemporaryDirectory(File path)
path - the temporary directory pathpublic KeyValueSorter.Options withCompressBlock(boolean enable)
enable - true to enable compressionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.