Class: Groonga::Command::Dump

Inherits:
Base
  • Object
show all
Defined in:
lib/groonga/command/dump.rb

Instance Attribute Summary

Attributes inherited from Base

#arguments, #command_name, #original_format, #original_source, #path_prefix

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, #[], #[]=, #command_format?, #initialize, #key?, #name, #request_id, #to_command_format, #to_elasticsearch_format, #to_s, #to_uri_format, #uri_format?

Constructor Details

This class inherits a constructor from Groonga::Command::Base

Class Method Details

.command_nameObject



23
24
25
# File 'lib/groonga/command/dump.rb', line 23

def command_name
  "dump"
end

.parameter_namesObject



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/groonga/command/dump.rb', line 27

def parameter_names
  [
    :tables,
    :dump_plugins,
    :dump_schema,
    :dump_records,
    :dump_indexes,
    :dump_configs,
    :sort_hash_table,
  ]
end

Instance Method Details

#output_typeObject



42
43
44
# File 'lib/groonga/command/dump.rb', line 42

def output_type
  :none
end

#sort_hash_table?Boolean

Returns true if sort_hash_table value is "yes".

Returns:

  • (Boolean)

    true if sort_hash_table value is "yes".

Since:

  • 1.3.4



49
50
51
52
53
# File 'lib/groonga/command/dump.rb', line 49

def sort_hash_table?
  boolean_value(:sort_hash_table,
                default: false,
                invalid: false)
end