Class: Hive2::Thrift::TMapTypeEntry

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

KEYTYPEPTR =
1
VALUETYPEPTR =
2
FIELDS =
{
  KEYTYPEPTR => {:type => ::Thrift::Types::I32, :name => 'keyTypePtr'},
  VALUETYPEPTR => {:type => ::Thrift::Types::I32, :name => 'valueTypePtr'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)

245
246
247
248
# File 'lib/thrift/t_c_l_i_service_types.rb', line 245

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