Class: Hive2::Thrift::TGetInfoValue
- Inherits:
-
Thrift::Union
- Object
- Thrift::Union
- Hive2::Thrift::TGetInfoValue
- Includes:
- Thrift::Struct_Union
- Defined in:
- lib/thrift/t_c_l_i_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
1050 1051 1052 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1050 def binaryValue(val) TGetInfoValue.new(:binaryValue, val) end |
.integerBitmask(val) ⇒ Object
1042 1043 1044 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1042 def integerBitmask(val) TGetInfoValue.new(:integerBitmask, val) end |
.integerFlag(val) ⇒ Object
1046 1047 1048 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1046 def integerFlag(val) TGetInfoValue.new(:integerFlag, val) end |
.lenValue(val) ⇒ Object
1054 1055 1056 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1054 def lenValue(val) TGetInfoValue.new(:lenValue, val) end |
.smallIntValue(val) ⇒ Object
1038 1039 1040 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1038 def smallIntValue(val) TGetInfoValue.new(:smallIntValue, val) end |
.stringValue(val) ⇒ Object
1034 1035 1036 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1034 def stringValue(val) TGetInfoValue.new(:stringValue, val) end |
Instance Method Details
#struct_fields ⇒ Object
1075 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1075 def struct_fields; FIELDS; end |
#validate ⇒ Object
1077 1078 1079 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1077 def validate raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil? end |