class Groonga::Command::TableCreate

Public Class Methods

command_name() click to toggle source
# File lib/groonga/command/table-create.rb, line 23
def command_name
  "table_create"
end
parameter_names() click to toggle source
# 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

default_tokenizer() click to toggle source

@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
flags() click to toggle source
# File lib/groonga/command/table-create.rb, line 65
def flags
  @flags ||= flags_value(:flags)
end
key_type() click to toggle source

@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
key_with_sis?() click to toggle source

@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
name() click to toggle source

@return [String] The table name.

@since 1.2.4

# File lib/groonga/command/table-create.rb, line 46
def name
  self[:name]
end
normalizer() click to toggle source

@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
path() click to toggle source

@return [String, nil] Path or nil @since 1.5.0

# File lib/groonga/command/table-create.rb, line 124
def path
  self[:path]
end
table_dat_key?() click to toggle source

@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
table_hash_key?() click to toggle source

@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
table_no_key?() click to toggle source

@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
table_pat_key?() click to toggle source

@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
token_filters() click to toggle source

@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
value_type() click to toggle source

@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