Sha256: 6778a1263b0aec98b67066c8d8763fdd6c838a0287845b6761eb5c7b41b5a7b3

Contents?: true

Size: 653 Bytes

Versions: 14

Compression:

Stored size: 653 Bytes

Contents

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

    # @param [Hash] props
    def put props
      @table.htable.checkAndPut(
        @rowkey, @cf, @cq, @val, @mutation.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, @mutation.delete(@rowkey, *extra))
    end
  end
end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hbase-jruby-0.6.4-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.6.3-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.6.2-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.6.1-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.6.0-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.5.1-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.5.0-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.4.6-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.4.5-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.4.4-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.4.3-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.4.2-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.4.1-java lib/hbase-jruby/table/checked_operation.rb
hbase-jruby-0.4.0-java lib/hbase-jruby/table/checked_operation.rb