class Groonga::Command::TableCreate
Public Class Methods
# File lib/groonga/command/table-create.rb, line 23 def command_name "table_create" end
# File lib/groonga/command/table-create.rb, line 27 def parameter_names [ :name, :flags, :key_type, :value_type, :default_tokenizer, :normalizer, :token_filters, :path, ] end
Public Instance Methods
@return [String, nil] Default tokenizer name or nil. @since 1.0.7
# File lib/groonga/command/table-create.rb, line 106 def default_tokenizer self[:default_tokenizer] end
# File lib/groonga/command/table-create.rb, line 65 def flags @flags ||= flags_value(:flags) end
@return [String, nil] Key type name, nil for array no key table. @since 1.0.7
# File lib/groonga/command/table-create.rb, line 52 def key_type self[:key_type] end
@return [Boolean] true if “KEY_WITH_SIS” is specified in {#flags},
false otherwise.
@since 1.0.3
# File lib/groonga/command/table-create.rb, line 100 def key_with_sis? flags.include?("KEY_WITH_SIS") end
@return [String] The table name.
@since 1.2.4
# File lib/groonga/command/table-create.rb, line 46 def name self[:name] end
@return [String, nil] Normalizer name or nil. @since 1.0.7
# File lib/groonga/command/table-create.rb, line 112 def normalizer self[:normalizer] end
@return [String, nil] Path or nil @since 1.5.0
# File lib/groonga/command/table-create.rb, line 124 def path self[:path] end
@return [Boolean] true if “TABLE_DAT_KEY” is specified in {#flags},
false otherwise.
@since 1.0.3
# File lib/groonga/command/table-create.rb, line 93 def table_dat_key? flags.include?("TABLE_DAT_KEY") end
@return [Boolean] true if “TABLE_HASH_KEY” is specified in {#flags},
false otherwise.
@since 1.0.3
# File lib/groonga/command/table-create.rb, line 79 def table_hash_key? flags.include?("TABLE_HASH_KEY") end
@return [Boolean] true if “TABLE_NO_KEY” is specified in {#flags},
false otherwise.
@since 1.0.3
# File lib/groonga/command/table-create.rb, line 72 def table_no_key? flags.include?("TABLE_NO_KEY") end
@return [Boolean] true if “TABLE_PAT_KEY” is specified in {#flags},
false otherwise.
@since 1.0.3
# File lib/groonga/command/table-create.rb, line 86 def table_pat_key? flags.include?("TABLE_PAT_KEY") end
@return [::Array<String>] Token filter names. @since 1.2.1
# File lib/groonga/command/table-create.rb, line 118 def token_filters @token_filters ||= array_value(:token_filters) end
@return [String, nil] Value type name, `nil` for no value
table. Double array trie table always returns `nil` because double array trie table doesn't support value.
@since 1.2.2
# File lib/groonga/command/table-create.rb, line 61 def value_type self[:value_type] end