class Groonga::Command::ColumnCreate

Public Class Methods

command_name() click to toggle source
# File lib/groonga/command/column-create.rb, line 23
def command_name
  "column_create"
end
parameter_names() click to toggle source
# File lib/groonga/command/column-create.rb, line 27
def parameter_names
  [
    :table,
    :name,
    :flags,
    :type,
    :source,
    :path,
  ]
end

Public Instance Methods

column_index?() click to toggle source

@return [Boolean] true if “COLUMN_INDEX” is specified in {#flags},

false otherwise.

@since 1.0.3

# File lib/groonga/command/column-create.rb, line 81
def column_index?
  flags.include?("COLUMN_INDEX")
end
column_scalar?() click to toggle source

@return [Boolean] true if “COLUMN_SCALAR” is specified in {#flags},

false otherwise.

@since 1.0.3

# File lib/groonga/command/column-create.rb, line 67
def column_scalar?
  flags.include?("COLUMN_SCALAR")
end
column_vector?() click to toggle source

@return [Boolean] true if “COLUMN_VECTOR” is specified in {#flags},

false otherwise.

@since 1.0.3

# File lib/groonga/command/column-create.rb, line 74
def column_vector?
  flags.include?("COLUMN_VECTOR")
end
flags() click to toggle source
# File lib/groonga/command/column-create.rb, line 54
def flags
  @flags ||= flags_value(:flags)
end
name() click to toggle source

@return [String] The column name.

@since 1.2.4

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

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

# File lib/groonga/command/column-create.rb, line 117
def path
  self[:path]
end
sources() click to toggle source

@return [::Array<String>] an array of index sources. If

`source` parameter value is empty or nil, this method
returns an empty array.

@since 1.0.7

# File lib/groonga/command/column-create.rb, line 111
def sources
  @sources ||= array_value(:source)
end
table() click to toggle source

@return [String] table name. @since 1.0.7

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

@return [String] value type name of the column. @since 1.0.7

# File lib/groonga/command/column-create.rb, line 60
def type
  self[:type]
end
with_position?() click to toggle source

@return [Boolean] true if “WITH_POSITION” is specified in {#flags},

false otherwise.

@since 1.0.3

# File lib/groonga/command/column-create.rb, line 102
def with_position?
  flags.include?("WITH_POSITION")
end
with_section?() click to toggle source

@return [Boolean] true if “WITH_SECTION” is specified in {#flags},

false otherwise.

@since 1.0.3

# File lib/groonga/command/column-create.rb, line 88
def with_section?
  flags.include?("WITH_SECTION")
end
with_weight?() click to toggle source

@return [Boolean] true if “WITH_WEIGHT” is specified in {#flags},

false otherwise.

@since 1.0.3

# File lib/groonga/command/column-create.rb, line 95
def with_weight?
  flags.include?("WITH_WEIGHT")
end