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
879 880 881 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 879 def binaryValue(val) TGetInfoValue.new(:binaryValue, val) end |
.integerBitmask(val) ⇒ Object
871 872 873 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 871 def integerBitmask(val) TGetInfoValue.new(:integerBitmask, val) end |
.integerFlag(val) ⇒ Object
875 876 877 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 875 def integerFlag(val) TGetInfoValue.new(:integerFlag, val) end |
.lenValue(val) ⇒ Object
883 884 885 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 883 def lenValue(val) TGetInfoValue.new(:lenValue, val) end |
.smallIntValue(val) ⇒ Object
867 868 869 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 867 def smallIntValue(val) TGetInfoValue.new(:smallIntValue, val) end |
.stringValue(val) ⇒ Object
863 864 865 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 863 def stringValue(val) TGetInfoValue.new(:stringValue, val) end |
Instance Method Details
#struct_fields ⇒ Object
904 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 904 def struct_fields; FIELDS; end |
#validate ⇒ Object
906 907 908 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 906 def validate raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil? end |