Skip to content

Instantly share code, notes, and snippets.

@Arnonrgo
Created April 1, 2013 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arnonrgo/d04a6a6a34d7c6c82e65 to your computer and use it in GitHub Desktop.
Save Arnonrgo/d04a6a6a34d7c6c82e65 to your computer and use it in GitHub Desktop.
a few lines from HBase's regionserver Store.java to show how compaction compression is used
this.compression = family.getCompression();
// avoid overriding compression setting for major compactions if the user
// has not specified it separately
this.compactionCompression =
(family.getCompactionCompression() != Compression.Algorithm.NONE) ?
family.getCompactionCompression() : this.compression;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment