Class: Impala::Protocol::Beeswax::BeeswaxService::Get_state_result

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

Constant Summary collapse

SUCCESS =
0
ERROR =
1
FIELDS =
{
SUCCESS => { :type => ::Thrift::Types::I32, :name => 'success', :enum_class => Impala::Protocol::Beeswax::QueryState },
ERROR => { :type => ::Thrift::Types::STRUCT, :name => 'error', :class => Impala::Protocol::Beeswax::QueryNotFoundException }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



504
# File 'lib/impala/protocol/beeswax_service.rb', line 504

def struct_fields; FIELDS; end

#validateObject



506
507
508
509
510
# File 'lib/impala/protocol/beeswax_service.rb', line 506

def validate
  unless @success.nil? || Impala::Protocol::Beeswax::QueryState::VALID_VALUES.include?(@success)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field success!')
  end
end