Javadoc on what BLOCKSIZE means (related to HBASE-15248)

This commit is contained in:
Michael Stack 2017-03-06 15:53:13 -08:00
parent 7fa7156f2c
commit 4beae9a56e
1 changed files with 4 additions and 1 deletions

View File

@ -103,7 +103,10 @@ public class HColumnDescriptor implements Comparable<HColumnDescriptor> {
/**
* Size of storefile/hfile 'blocks'. Default is {@link #DEFAULT_BLOCKSIZE}.
* Use smaller block sizes for faster random-access at expense of larger
* indices (more memory consumption).
* indices (more memory consumption). Note that this is a soft limit and that
* blocks have overhead (metadata, CRCs) so blocks will tend to be the size
* specified here and then some; i.e. don't expect that setting BLOCKSIZE=4k
* means hbase data will align with an SSDs 4k page accesses (TODO).
*/
public static final String BLOCKSIZE = "BLOCKSIZE";