Class: Grn2Drn::SchemaConverter::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/grn2drn/schema-converter.rb

Instance Method Summary collapse

Constructor Details

#initialize(column_create_command) ⇒ Column

Returns a new instance of Column.



154
155
156
# File 'lib/grn2drn/schema-converter.rb', line 154

def initialize(column_create_command)
  @command = column_create_command
end

Instance Method Details

#to_droonga_schemaObject



158
159
160
161
162
163
164
165
# File 'lib/grn2drn/schema-converter.rb', line 158

def to_droonga_schema
  schema = {}
  set_schema_item(schema, "type", type)
  set_schema_item(schema, "valueType", value_type)
  set_schema_item(schema, "vectorOptions", vector_options)
  set_schema_item(schema, "indexOptions", index_options)
  schema
end