Module: ElasticGraph::Warehouse::SchemaDefinition::IndexExtension
- Defined in:
- elasticgraph-warehouse/lib/elastic_graph/warehouse/schema_definition/index_extension.rb
Overview
Extends SchemaDefinition::Indexing::Index to add warehouse table definition support.
Instance Attribute Summary collapse
-
#warehouse_table_def ⇒ WarehouseTable?
readonly
Returns the warehouse table definition for this index, if one has been defined via #warehouse_table.
Instance Method Summary collapse
-
#warehouse_table(name) ⇒ void
Defines a warehouse table for this index.
Instance Attribute Details
#warehouse_table_def ⇒ WarehouseTable? (readonly)
Returns the warehouse table definition for this index, if one has been defined via #warehouse_table.
20 21 22 |
# File 'elasticgraph-warehouse/lib/elastic_graph/warehouse/schema_definition/index_extension.rb', line 20 def warehouse_table_def @warehouse_table_def end |
Instance Method Details
#warehouse_table(name) ⇒ void
This method returns an undefined value.
Defines a warehouse table for this index.
38 39 40 |
# File 'elasticgraph-warehouse/lib/elastic_graph/warehouse/schema_definition/index_extension.rb', line 38 def warehouse_table(name) @warehouse_table_def = WarehouseTable.new(name: name, index: self) end |