module KuduAdapter::TableDefinitionExtensions
Definitions of additional table capabilities in Kudu
Attributes
partitions[R]
@!attribute [r] partitions
@return [Array] List of table partition definitions
Public Instance Methods
external()
click to toggle source
# File lib/kudu_adapter/table_definition_extensions.rb, line 24 def external true end
partition(name, type, options = {})
click to toggle source
Define single partition @param name [String] Parition name @param type [String] Partition type @param options [Hash] Parition options
# File lib/kudu_adapter/table_definition_extensions.rb, line 14 def partition(name, type, options = {}) column(name, type, options) @partitions ||= [] @partitions << @columns.pop end
row_format()
click to toggle source
# File lib/kudu_adapter/table_definition_extensions.rb, line 20 def row_format 'ROW FORMAT DELIMITED FIELDS TERMINATED BY "\t"' end