Module: HBase::Model::CompressionType

Defined in:
lib/hbase/model/column_descriptor.rb

Constant Summary collapse

NONE =
"NONE"
RECORD =
"RECORD"
BLOCK =
"BLOCK"

Class Method Summary collapse

Class Method Details

.to_compression_type(type_string) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/hbase/model/column_descriptor.rb', line 8

def to_compression_type(type_string)
  case type_string
  when "NONE"   then NONE
  when "RECORD" then RECORD
  when "BLOCK"  then BLOCK
  else
    NONE
  end
end