Class: Impala::Protocol::TInsertExecStatus

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

Constant Summary collapse

NUM_APPENDED_ROWS =
1
FILES_TO_MOVE =
2
FIELDS =
{
NUM_APPENDED_ROWS => { :type => ::Thrift::Types::MAP, :name => 'num_appended_rows', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::I64 }, :optional => true },
FILES_TO_MOVE => { :type => ::Thrift::Types::MAP, :name => 'files_to_move', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



218
# File 'lib/impala/protocol/impala_internal_service_types.rb', line 218

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


220
221
222
# File 'lib/impala/protocol/impala_internal_service_types.rb', line 220

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