Module: HBase::Row::HashExtension
- Defined in:
- lib/hbase-jruby/row.rb
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/hbase-jruby/row.rb', line 42 def [] key # %w[cf x] if key.is_a?(Array) && key.length == 2 key = [key[0].to_sym, ByteArray[key[1]]] # %[cf:x] elsif key.is_a?(String) && key.index(':') cf, cq = key.split(':', 2) key = [cf.to_sym, ByteArray[cq]] end super key end |