Class: Impala::Protocol::TGetResultSetMetadataResp

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

Constant Summary collapse

STATUS =
1
SCHEMA =
2
FIELDS =
{
  STATUS => {:type => ::Thrift::Types::STRUCT, :name => 'status', :class => ::Impala::Protocol::TStatus},
  SCHEMA => {:type => ::Thrift::Types::STRUCT, :name => 'schema', :class => ::Impala::Protocol::TTableSchema, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



1592
# File 'lib/impala/protocol/t_c_l_i_service_types.rb', line 1592

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


1594
1595
1596
# File 'lib/impala/protocol/t_c_l_i_service_types.rb', line 1594

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