Class: Droonga::GroongaHandler

Inherits:
HandlerPlugin show all
Defined in:
lib/droonga/plugin/handler/groonga.rb,
lib/droonga/plugin/handler/groonga/table_create.rb,
lib/droonga/plugin/handler/groonga/column_create.rb

Defined Under Namespace

Modules: Status Classes: ColumnCreate, Command, TableCreate

Instance Method Summary collapse

Methods inherited from HandlerPlugin

#emit, #envelope, #initialize, #post

Methods included from PluginRegisterable

#command, extended, #inherited, #method_name, #processable?, #repository

Methods inherited from Plugin

#initialize, #process, #processable?, #shutdown, #start

Constructor Details

This class inherits a constructor from Droonga::HandlerPlugin

Instance Method Details

#column_create(request) ⇒ Object



34
35
36
37
38
# File 'lib/droonga/plugin/handler/groonga.rb', line 34

def column_create(request)
  command = ColumnCreate.new(@context)
  outputs = command.execute(request)
  emit(outputs)
end

#prefer_synchronous?(command) ⇒ Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/droonga/plugin/handler/groonga.rb', line 40

def prefer_synchronous?(command)
  return true
end

#table_create(request) ⇒ Object



27
28
29
30
31
# File 'lib/droonga/plugin/handler/groonga.rb', line 27

def table_create(request)
  command = TableCreate.new(@context)
  outputs = command.execute(request)
  emit(outputs)
end