Sha256: d10392565da73b567dc74b92bcad705740ed3e846dfd5970e7b44d44bafe3aef

Contents?: true

Size: 605 Bytes

Versions: 3

Compression:

Stored size: 605 Bytes

Contents

class HBase
class Table
  class CheckedOperation
    def initialize table, rowkey, cf, cq, val
      @table  = table
      @rowkey = rowkey
      @cf     = cf
      @cq     = cq
      @val    = val
    end

    # @param [Hash] props
    def put props
      @table.htable.checkAndPut @rowkey, @cf, @cq, @val, @table.send(:make_put, @rowkey, props)
    end

    # @param [Object] *extra Optional delete specification. Column family, qualifier, and timestamps
    def delete *extra
      @table.htable.checkAndDelete @rowkey, @cf, @cq, @val, @table.send(:make_delete, @rowkey, *extra)
    end
  end
end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hbase-jruby-0.3.5-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.3.4-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.3.3-java lib/hbase-jruby/table/checked_operation.rb