Class: HadoopDsl::HiveLike::HiveLikeMapperModel::Table
- Inherits:
-
Object
- Object
- HadoopDsl::HiveLike::HiveLikeMapperModel::Table
- Defined in:
- lib/hive_like.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
readonly
Returns the value of attribute columns.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #column(index) ⇒ Object
-
#initialize(name) ⇒ Table
constructor
A new instance of Table.
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
#columns ⇒ Object (readonly)
Returns the value of attribute columns.
93 94 95 |
# File 'lib/hive_like.rb', line 93 def columns @columns end |
#name ⇒ Object (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 |