Class: Hive2::Thrift::TColumn
- Inherits:
-
Thrift::Union
- Object
- Thrift::Union
- Hive2::Thrift::TColumn
- Includes:
- Thrift::Struct_Union
- Defined in:
- lib/thrift/t_c_l_i_service_types.rb
Constant Summary collapse
- BOOLCOLUMN =
1
- BYTECOLUMN =
2
- I16COLUMN =
3
- I32COLUMN =
4
- I64COLUMN =
5
- DOUBLECOLUMN =
6
- STRINGCOLUMN =
7
- FIELDS =
{ BOOLCOLUMN => {:type => ::Thrift::Types::LIST, :name => 'boolColumn', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hive2::Thrift::TBoolValue}}, BYTECOLUMN => {:type => ::Thrift::Types::LIST, :name => 'byteColumn', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hive2::Thrift::TByteValue}}, I16COLUMN => {:type => ::Thrift::Types::LIST, :name => 'i16Column', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hive2::Thrift::TI16Value}}, I32COLUMN => {:type => ::Thrift::Types::LIST, :name => 'i32Column', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hive2::Thrift::TI32Value}}, I64COLUMN => {:type => ::Thrift::Types::LIST, :name => 'i64Column', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hive2::Thrift::TI64Value}}, DOUBLECOLUMN => {:type => ::Thrift::Types::LIST, :name => 'doubleColumn', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hive2::Thrift::TDoubleValue}}, STRINGCOLUMN => {:type => ::Thrift::Types::LIST, :name => 'stringColumn', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hive2::Thrift::TStringValue}} }
Class Method Summary collapse
- .boolColumn(val) ⇒ Object
- .byteColumn(val) ⇒ Object
- .doubleColumn(val) ⇒ Object
- .i16Column(val) ⇒ Object
- .i32Column(val) ⇒ Object
- .i64Column(val) ⇒ Object
- .stringColumn(val) ⇒ Object
Instance Method Summary collapse
Class Method Details
.boolColumn(val) ⇒ Object
526 527 528 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 526 def boolColumn(val) TColumn.new(:boolColumn, val) end |
.byteColumn(val) ⇒ Object
530 531 532 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 530 def byteColumn(val) TColumn.new(:byteColumn, val) end |
.doubleColumn(val) ⇒ Object
546 547 548 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 546 def doubleColumn(val) TColumn.new(:doubleColumn, val) end |
.i16Column(val) ⇒ Object
534 535 536 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 534 def i16Column(val) TColumn.new(:i16Column, val) end |
.i32Column(val) ⇒ Object
538 539 540 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 538 def i32Column(val) TColumn.new(:i32Column, val) end |
.i64Column(val) ⇒ Object
542 543 544 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 542 def i64Column(val) TColumn.new(:i64Column, val) end |
.stringColumn(val) ⇒ Object
550 551 552 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 550 def stringColumn(val) TColumn.new(:stringColumn, val) end |
Instance Method Details
#struct_fields ⇒ Object
573 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 573 def struct_fields; FIELDS; end |
#validate ⇒ Object
575 576 577 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 575 def validate raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil? end |