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



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

def flags
  @flags
end

#generatorObject

Returns the value of attribute generator

Returns:

  • (Object)

    the current value of generator



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

def generator
  @generator
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



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

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



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

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



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

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



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

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