Amend HBASE-6303. Likewise for HCD.setCompactionCompressionType

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1356570 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2012-07-03 04:36:39 +00:00
parent 6505939970
commit b6eabd741d
1 changed files with 1 additions and 8 deletions

View File

@ -668,14 +668,7 @@ public class HColumnDescriptor implements WritableComparable<HColumnDescriptor>
*/
public HColumnDescriptor setCompactionCompressionType(
Compression.Algorithm type) {
String compressionType;
switch (type) {
case LZO: compressionType = "LZO"; break;
case GZ: compressionType = "GZ"; break;
case SNAPPY: compressionType = "SNAPPY"; break;
default: compressionType = "NONE"; break;
}
return setValue(COMPRESSION_COMPACT, compressionType);
return setValue(COMPRESSION_COMPACT, type.getName().toUpperCase());
}
/**