class RBHive::TableSchema::Column
Attributes
comment[R]
name[R]
type[R]
Public Class Methods
new(name, type, comment=nil)
click to toggle source
# File lib/rbhive/table_schema.rb, line 112 def initialize(name, type, comment=nil) @name, @type, @comment = name, type, comment end
Public Instance Methods
to_s()
click to toggle source
# File lib/rbhive/table_schema.rb, line 116 def to_s comment_string = @comment.nil? ? '' : " COMMENT '#{@comment}'" "`#{@name}` #{@type.to_s.upcase}#{comment_string}" end