Module: KuduAdapter::TableDefinitionExtensions
- Defined in:
- lib/kudu_adapter/table_definition_extensions.rb
Overview
Definitions of additional table capabilities in Kudu
Instance Attribute Summary collapse
-
#partitions ⇒ Object
readonly
Returns the value of attribute partitions.
Instance Method Summary collapse
- #external ⇒ Object
-
#partition(name, type, options = {}) ⇒ Object
Define single partition.
- #row_format ⇒ Object
Instance Attribute Details
#partitions ⇒ Object (readonly)
Returns the value of attribute partitions.
8 9 10 |
# File 'lib/kudu_adapter/table_definition_extensions.rb', line 8 def partitions @partitions end |
Instance Method Details
#external ⇒ Object
24 25 26 |
# File 'lib/kudu_adapter/table_definition_extensions.rb', line 24 def external true end |
#partition(name, type, options = {}) ⇒ Object
Define single partition
14 15 16 17 18 |
# File 'lib/kudu_adapter/table_definition_extensions.rb', line 14 def partition(name, type, = {}) column(name, type, ) @partitions ||= [] @partitions << @columns.pop end |
#row_format ⇒ Object
20 21 22 |
# File 'lib/kudu_adapter/table_definition_extensions.rb', line 20 def row_format 'ROW FORMAT DELIMITED FIELDS TERMINATED BY "\t"' end |