Class: Groonga::Client::Response::ColumnList::Column

Inherits:
Struct
  • Object
show all
Defined in:
lib/groonga/client/response/column-list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#domainObject

Returns the value of attribute domain

Returns:

  • (Object)

    the current value of domain



59
60
61
# File 'lib/groonga/client/response/column-list.rb', line 59

def domain
  @domain
end

#flags::Array<String>

Returns The flag names of the column.

Returns:

  • (::Array<String>)

    The flag names of the column.

Since:

  • 0.5.3



79
80
81
# File 'lib/groonga/client/response/column-list.rb', line 79

def flags
  @flags
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



59
60
61
# File 'lib/groonga/client/response/column-list.rb', line 59

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



59
60
61
# File 'lib/groonga/client/response/column-list.rb', line 59

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



59
60
61
# File 'lib/groonga/client/response/column-list.rb', line 59

def path
  @path
end

#rangeObject

Returns the value of attribute range

Returns:

  • (Object)

    the current value of range



59
60
61
# File 'lib/groonga/client/response/column-list.rb', line 59

def range
  @range
end

#sourceObject Also known as: sources

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



59
60
61
# File 'lib/groonga/client/response/column-list.rb', line 59

def source
  @source
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



59
60
61
# File 'lib/groonga/client/response/column-list.rb', line 59

def type
  @type
end

Instance Method Details

#full_nameString

Returns The column name with table name such as TABLE.COLUMN.

Returns:

  • (String)

    The column name with table name such as TABLE.COLUMN.

Since:

  • 0.5.4



71
72
73
# File 'lib/groonga/client/response/column-list.rb', line 71

def full_name
  "#{domain}.#{name}"
end

#index?Boolean

Returns true if the column is an index column, false otherwise.

Returns:

  • (Boolean)

    true if the column is an index column, false otherwise.

Since:

  • 0.5.3



103
104
105
# File 'lib/groonga/client/response/column-list.rb', line 103

def index?
  flags.include?("COLUMN_INDEX")
end

#scalar?Boolean

Returns true if the column is a scalar column, false otherwise.

Returns:

  • (Boolean)

    true if the column is a scalar column, false otherwise.

Since:

  • 0.5.3



87
88
89
# File 'lib/groonga/client/response/column-list.rb', line 87

def scalar?
  flags.include?("COLUMN_SCALAR")
end

#vector?Boolean

Returns true if the column is a vector column, false otherwise.

Returns:

  • (Boolean)

    true if the column is a vector column, false otherwise.

Since:

  • 0.5.3



95
96
97
# File 'lib/groonga/client/response/column-list.rb', line 95

def vector?
  flags.include?("COLUMN_VECTOR")
end