Class: HipsterSqlToHbase::ThriftCallGroup

Inherits:
Array
  • Object
show all
Defined in:
lib/result_tree_to_hbase_converter.rb

Overview

This class provides the method necessary to execute the Thrift result generated after parsing the SQL sentence.

Instance Method Summary collapse

Constructor Details

#initialize(arr, incr = false) ⇒ ThriftCallGroup

Returns a new instance of ThriftCallGroup.



13
14
15
16
17
18
# File 'lib/result_tree_to_hbase_converter.rb', line 13

def initialize(arr,incr=false)
  arr.each do |v|
    self << v
  end
  @incr = incr
end

Instance Method Details

#execute(host = nil, port = nil) ⇒ Object



19
20
21
# File 'lib/result_tree_to_hbase_converter.rb', line 19

def execute(host=nil,port=nil)
  HipsterSqlToHbase::Executor.new().execute(self,host,port,@incr)
end