Sha256: 6e5b99bae7e5ffef7ae63063e1161bb71e639a79d0bb61f99894e6a5f80e02b5

Contents?: true

Size: 564 Bytes

Versions: 8

Compression:

Stored size: 564 Bytes

Contents

module Riak::TimeSeries

  # Delete entries from Riak Time Series.
  class Deletion
    attr_accessor :key
    attr_accessor :options

    attr_reader :client
    attr_reader :table_name

    def initialize(client, table_name)
      @client = client
      @table_name = table_name
      @options = Hash.new
    end

    def delete!
      client.backend do |be|
        be.time_series_delete_operator.delete(table_name,
                                              key,
                                              options)
      end
      true
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
riak-client-2.6.0 lib/riak/time_series/deletion.rb
riak-client-2.5.0 lib/riak/time_series/deletion.rb
riak-client-2.4.1 lib/riak/time_series/deletion.rb
riak-client-2.4.0 lib/riak/time_series/deletion.rb
riak-client-2.4.0.pre1 lib/riak/time_series/deletion.rb
riak-client-2.3.2 lib/riak/time_series/deletion.rb
riak-client-2.3.1 lib/riak/time_series/deletion.rb
riak-client-2.3.0 lib/riak/time_series/deletion.rb