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
112 def initialize(name, type, comment=nil)
113   @name, @type, @comment = name, type, comment
114 end

Public Instance Methods

to_s() click to toggle source
    # File lib/rbhive/table_schema.rb
116 def to_s
117   comment_string = @comment.nil? ? '' : " COMMENT '#{@comment}'"
118   "`#{@name}` #{@type.to_s.upcase}#{comment_string}"
119 end