Class: Hive2::Thrift::TColumnValue
- Inherits:
-
Thrift::Union
- Object
- Thrift::Union
- Hive2::Thrift::TColumnValue
- Includes:
- Thrift::Struct_Union
- Defined in:
- lib/thrift/t_c_l_i_service_types.rb
Constant Summary collapse
- BOOLVAL =
1
- BYTEVAL =
2
- I16VAL =
3
- I32VAL =
4
- I64VAL =
5
- DOUBLEVAL =
6
- STRINGVAL =
7
- FIELDS =
{ BOOLVAL => {:type => ::Thrift::Types::STRUCT, :name => 'boolVal', :class => ::Hive2::Thrift::TBoolValue}, BYTEVAL => {:type => ::Thrift::Types::STRUCT, :name => 'byteVal', :class => ::Hive2::Thrift::TByteValue}, I16VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i16Val', :class => ::Hive2::Thrift::TI16Value}, I32VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i32Val', :class => ::Hive2::Thrift::TI32Value}, I64VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i64Val', :class => ::Hive2::Thrift::TI64Value}, DOUBLEVAL => {:type => ::Thrift::Types::STRUCT, :name => 'doubleVal', :class => ::Hive2::Thrift::TDoubleValue}, STRINGVAL => {:type => ::Thrift::Types::STRUCT, :name => 'stringVal', :class => ::Hive2::Thrift::TStringValue} }
Class Method Summary collapse
- .boolVal(val) ⇒ Object
- .byteVal(val) ⇒ Object
- .doubleVal(val) ⇒ Object
- .i16Val(val) ⇒ Object
- .i32Val(val) ⇒ Object
- .i64Val(val) ⇒ Object
- .stringVal(val) ⇒ Object
Instance Method Summary collapse
Class Method Details
.boolVal(val) ⇒ Object
585 586 587 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 585 def boolVal(val) TColumnValue.new(:boolVal, val) end |
.byteVal(val) ⇒ Object
589 590 591 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 589 def byteVal(val) TColumnValue.new(:byteVal, val) end |
.doubleVal(val) ⇒ Object
605 606 607 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 605 def doubleVal(val) TColumnValue.new(:doubleVal, val) end |
.i16Val(val) ⇒ Object
593 594 595 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 593 def i16Val(val) TColumnValue.new(:i16Val, val) end |
.i32Val(val) ⇒ Object
597 598 599 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 597 def i32Val(val) TColumnValue.new(:i32Val, val) end |
.i64Val(val) ⇒ Object
601 602 603 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 601 def i64Val(val) TColumnValue.new(:i64Val, val) end |
.stringVal(val) ⇒ Object
609 610 611 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 609 def stringVal(val) TColumnValue.new(:stringVal, val) end |
Instance Method Details
#struct_fields ⇒ Object
632 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 632 def struct_fields; FIELDS; end |
#validate ⇒ Object
634 635 636 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 634 def validate raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil? end |