Class: Hive2::Thrift::TUnionTypeEntry

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/t_c_l_i_service_types.rb

Constant Summary collapse

NAMETOTYPEPTR =
1
FIELDS =
{
  NAMETOTYPEPTR => {:type => ::Thrift::Types::MAP, :name => 'nameToTypePtr', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



278
# File 'lib/thrift/t_c_l_i_service_types.rb', line 278

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


280
281
282
# File 'lib/thrift/t_c_l_i_service_types.rb', line 280

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nameToTypePtr is unset!') unless @nameToTypePtr
end