Class: Impala::Protocol::Hive::TColumnValue
- Inherits:
-
Thrift::Union
- Object
- Thrift::Union
- Impala::Protocol::Hive::TColumnValue
- Includes:
- Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/cli_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 => ::Impala::Protocol::Hive::TBoolValue}, BYTEVAL => {:type => ::Thrift::Types::STRUCT, :name => 'byteVal', :class => ::Impala::Protocol::Hive::TByteValue}, I16VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i16Val', :class => ::Impala::Protocol::Hive::TI16Value}, I32VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i32Val', :class => ::Impala::Protocol::Hive::TI32Value}, I64VAL => {:type => ::Thrift::Types::STRUCT, :name => 'i64Val', :class => ::Impala::Protocol::Hive::TI64Value}, DOUBLEVAL => {:type => ::Thrift::Types::STRUCT, :name => 'doubleVal', :class => ::Impala::Protocol::Hive::TDoubleValue}, STRINGVAL => {:type => ::Thrift::Types::STRUCT, :name => 'stringVal', :class => ::Impala::Protocol::Hive::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
532 533 534 |
# File 'lib/impala/protocol/cli_service_types.rb', line 532 def boolVal(val) TColumnValue.new(:boolVal, val) end |
.byteVal(val) ⇒ Object
536 537 538 |
# File 'lib/impala/protocol/cli_service_types.rb', line 536 def byteVal(val) TColumnValue.new(:byteVal, val) end |
.doubleVal(val) ⇒ Object
552 553 554 |
# File 'lib/impala/protocol/cli_service_types.rb', line 552 def doubleVal(val) TColumnValue.new(:doubleVal, val) end |
.i16Val(val) ⇒ Object
540 541 542 |
# File 'lib/impala/protocol/cli_service_types.rb', line 540 def i16Val(val) TColumnValue.new(:i16Val, val) end |
.i32Val(val) ⇒ Object
544 545 546 |
# File 'lib/impala/protocol/cli_service_types.rb', line 544 def i32Val(val) TColumnValue.new(:i32Val, val) end |
.i64Val(val) ⇒ Object
548 549 550 |
# File 'lib/impala/protocol/cli_service_types.rb', line 548 def i64Val(val) TColumnValue.new(:i64Val, val) end |
.stringVal(val) ⇒ Object
556 557 558 |
# File 'lib/impala/protocol/cli_service_types.rb', line 556 def stringVal(val) TColumnValue.new(:stringVal, val) end |
Instance Method Details
#struct_fields ⇒ Object
579 |
# File 'lib/impala/protocol/cli_service_types.rb', line 579 def struct_fields; FIELDS; end |
#validate ⇒ Object
581 582 583 |
# File 'lib/impala/protocol/cli_service_types.rb', line 581 def validate raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil? end |