Class: Embulk::Column
- Inherits:
-
Struct
- Object
- Struct
- Embulk::Column
- Defined in:
- lib/embulk/column.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(index, name, type) ⇒ Column
constructor
A new instance of Column.
- #java_object ⇒ Object
Constructor Details
#initialize(index, name, type) ⇒ Column
Returns a new instance of Column.
4 5 6 |
# File 'lib/embulk/column.rb', line 4 def initialize(index, name, type) super(index, name, type) end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index
3 4 5 |
# File 'lib/embulk/column.rb', line 3 def index @index end |
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/embulk/column.rb', line 3 def name @name end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/embulk/column.rb', line 3 def type @type end |
Class Method Details
.from_java_object(java_column) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/embulk/column.rb', line 9 def self.from_java_object(java_column) Column.new( java_column.getIndex, java_column.getName, Type.from_java_object(java_column.getType)) end |
Instance Method Details
#java_object ⇒ Object
16 17 18 |
# File 'lib/embulk/column.rb', line 16 def java_object Java::Column.new(index, name, Type.to_java_object(type)) end |