Class: HBase::Table::BatchAction

Inherits:
Object
  • Object
show all
Defined in:
lib/hbase-jruby/table/batch_action.rb

Overview

Class used to register actions to perform in batch

Defined Under Namespace

Classes: BatchGetScoped

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionsObject (readonly)

Returns the value of attribute actions.



5
6
7
# File 'lib/hbase-jruby/table/batch_action.rb', line 5

def actions
  @actions
end

#typesObject (readonly)

Returns the value of attribute types.



6
7
8
# File 'lib/hbase-jruby/table/batch_action.rb', line 6

def types
  @types
end

Instance Method Details

#append(*args) ⇒ Object



38
39
40
# File 'lib/hbase-jruby/table/batch_action.rb', line 38

def append *args
  @actions << { :type => :append, :action => @mutation.append(*args) }
end

#delete(*args) ⇒ Object



33
34
35
# File 'lib/hbase-jruby/table/batch_action.rb', line 33

def delete *args
  @actions << { :type => :delete, :action => @mutation.delete(*args) }
end

#increment(*args) ⇒ Object



43
44
45
# File 'lib/hbase-jruby/table/batch_action.rb', line 43

def increment *args
  @actions << { :type => :increment, :action => @mutation.increment(*args) }
end

#put(*args) ⇒ Object

See Also:



28
29
30
# File 'lib/hbase-jruby/table/batch_action.rb', line 28

def put *args
  @actions << { :type => :put, :action => @mutation.put(*args) }
end