Class: Grn2Drn::SchemaConverter::Column
- Inherits:
-
Object
- Object
- Grn2Drn::SchemaConverter::Column
- Defined in:
- lib/grn2drn/schema-converter.rb
Instance Method Summary collapse
-
#initialize(column_create_command) ⇒ Column
constructor
A new instance of Column.
- #to_droonga_schema ⇒ Object
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_schema ⇒ Object
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", ) set_schema_item(schema, "indexOptions", ) schema end |