Module: HBase::Model::CompressionType

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

Constant Summary collapse

NONE =
"NONE"
RECORD =
"RECORD"
BLOCK =
"BLOCK"
CTYPES =
[NONE, RECORD, BLOCK]

Class Method Summary collapse

Class Method Details

.to_compression_type(type_string) ⇒ Object



10
11
12
# File 'lib/hbase/model/column_descriptor.rb', line 10

def to_compression_type(type_string)
  CTYPES.include?(type_string) ? type_string : NONE
end