Sha256: d6c6d2f766bbeed15a8f34e1bb362356bdec3cf8638e0292c47d160b6846ad89

Contents?: true

Size: 455 Bytes

Versions: 90

Compression:

Stored size: 455 Bytes

Contents

module Mandy
  module Stores
    class HBase
      attr_reader :options
      
      def initialize(options)
        @options = options
        @table = ::HBase::HTable.new(options[:url])
      end
      
      def get(key)
        @table.get(key)
      end
      
      def put(key, values)
        @table.put(key, values)
      end
      
      def ==(other)
        self.class == other.class && self.options == other.options
      end
    end
  end
end

Version data entries

90 entries across 90 versions & 2 rubygems

Version Path
trafficbroker-mandy-0.1.8 lib/stores/hbase.rb
trafficbroker-mandy-0.1.9 lib/stores/hbase.rb
trafficbroker-mandy-0.2.10 lib/stores/hbase.rb
trafficbroker-mandy-0.2.11 lib/stores/hbase.rb
trafficbroker-mandy-0.2.12 lib/stores/hbase.rb
trafficbroker-mandy-0.2.13 lib/stores/hbase.rb
trafficbroker-mandy-0.2.2 lib/stores/hbase.rb
trafficbroker-mandy-0.2.3 lib/stores/hbase.rb
trafficbroker-mandy-0.2.4.2 lib/stores/hbase.rb
trafficbroker-mandy-0.2.4.3 lib/stores/hbase.rb
trafficbroker-mandy-0.2.4.4 lib/stores/hbase.rb
trafficbroker-mandy-0.2.4.5 lib/stores/hbase.rb
trafficbroker-mandy-0.2.4.6 lib/stores/hbase.rb
trafficbroker-mandy-0.2.4 lib/stores/hbase.rb
trafficbroker-mandy-0.2.5.1 lib/stores/hbase.rb
trafficbroker-mandy-0.2.5 lib/stores/hbase.rb
trafficbroker-mandy-0.2.6 lib/stores/hbase.rb
trafficbroker-mandy-0.2.7 lib/stores/hbase.rb
trafficbroker-mandy-0.2.8 lib/stores/hbase.rb
trafficbroker-mandy-0.2 lib/stores/hbase.rb