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:
parent
6505939970
commit
b6eabd741d
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue