Class: Impala::Protocol::TInsertResult

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/impala/protocol/impala_service_types.rb

Constant Summary collapse

ROWS_APPENDED =
1
FIELDS =
{
ROWS_APPENDED => { :type => ::Thrift::Types::MAP, :name => 'rows_appended', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::I64 } }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



36
# File 'lib/impala/protocol/impala_service_types.rb', line 36

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


38
39
40
# File 'lib/impala/protocol/impala_service_types.rb', line 38

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