Class: HadoopDsl::HiveLike::HiveLikeMapperModel::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/hive_like.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Table

Returns a new instance of Table.



95
96
97
98
# File 'lib/hive_like.rb', line 95

def initialize(name)
  @name = name
  @columns = []
end

Instance Attribute Details

#columnsObject (readonly)

Returns the value of attribute columns.



93
94
95
# File 'lib/hive_like.rb', line 93

def columns
  @columns
end

#nameObject (readonly)

Returns the value of attribute name.



93
94
95
# File 'lib/hive_like.rb', line 93

def name
  @name
end

Instance Method Details

#column(index) ⇒ Object



100
# File 'lib/hive_like.rb', line 100

def column(index) @columns[index] end