Method: Babeltrace2::BTQueryExecutor#initialize

Defined in:
lib/babeltrace2/graph/query-executor.rb

#initialize(handle = nil, retain: true, auto_release: true, component_class: nil, object_name: nil, params: nil, method_data: nil) ⇒ BTQueryExecutor

Returns a new instance of BTQueryExecutor.



85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/babeltrace2/graph/query-executor.rb', line 85

def initialize(handle = nil, retain: true, auto_release: true,
               component_class: nil, object_name: nil, params: nil, method_data: nil)
  if handle
    super(handle, retain: retain, auto_release: auto_release)
  else
    bt_params = BTValue.from_value(params)
    handle = Babeltrace2.bt_query_executor_create_with_method_data(
               component_class, object_name, bt_params, method_data)
    raise Babeltrace2.process_error if handle.null?
    super(handle)
  end
end