Class: Impala::Protocol::Hive::TGetInfoValue
- Inherits:
-
Thrift::Union
- Object
- Thrift::Union
- Impala::Protocol::Hive::TGetInfoValue
- Includes:
- Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/cli_service_types.rb
Constant Summary collapse
- STRINGVALUE =
1
- SMALLINTVALUE =
2
- INTEGERBITMASK =
3
- INTEGERFLAG =
4
- BINARYVALUE =
5
- LENVALUE =
6
- FIELDS =
{ STRINGVALUE => {:type => ::Thrift::Types::STRING, :name => 'stringValue'}, SMALLINTVALUE => {:type => ::Thrift::Types::I16, :name => 'smallIntValue'}, INTEGERBITMASK => {:type => ::Thrift::Types::I32, :name => 'integerBitmask'}, INTEGERFLAG => {:type => ::Thrift::Types::I32, :name => 'integerFlag'}, BINARYVALUE => {:type => ::Thrift::Types::I32, :name => 'binaryValue'}, LENVALUE => {:type => ::Thrift::Types::I64, :name => 'lenValue'} }
Class Method Summary collapse
- .binaryValue(val) ⇒ Object
- .integerBitmask(val) ⇒ Object
- .integerFlag(val) ⇒ Object
- .lenValue(val) ⇒ Object
- .smallIntValue(val) ⇒ Object
- .stringValue(val) ⇒ Object
Instance Method Summary collapse
Class Method Details
.binaryValue(val) ⇒ Object
826 827 828 |
# File 'lib/impala/protocol/cli_service_types.rb', line 826 def binaryValue(val) TGetInfoValue.new(:binaryValue, val) end |
.integerBitmask(val) ⇒ Object
818 819 820 |
# File 'lib/impala/protocol/cli_service_types.rb', line 818 def integerBitmask(val) TGetInfoValue.new(:integerBitmask, val) end |
.integerFlag(val) ⇒ Object
822 823 824 |
# File 'lib/impala/protocol/cli_service_types.rb', line 822 def integerFlag(val) TGetInfoValue.new(:integerFlag, val) end |
.lenValue(val) ⇒ Object
830 831 832 |
# File 'lib/impala/protocol/cli_service_types.rb', line 830 def lenValue(val) TGetInfoValue.new(:lenValue, val) end |
.smallIntValue(val) ⇒ Object
814 815 816 |
# File 'lib/impala/protocol/cli_service_types.rb', line 814 def smallIntValue(val) TGetInfoValue.new(:smallIntValue, val) end |
.stringValue(val) ⇒ Object
810 811 812 |
# File 'lib/impala/protocol/cli_service_types.rb', line 810 def stringValue(val) TGetInfoValue.new(:stringValue, val) end |
Instance Method Details
#struct_fields ⇒ Object
851 |
# File 'lib/impala/protocol/cli_service_types.rb', line 851 def struct_fields; FIELDS; end |
#validate ⇒ Object
853 854 855 |
# File 'lib/impala/protocol/cli_service_types.rb', line 853 def validate raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil? end |