Class: Impala::Protocol::TDescribeTableResult

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

Constant Summary collapse

COLUMNS =
1
FIELDS =
{
COLUMNS => { :type => ::Thrift::Types::LIST, :name => 'columns', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TColumnDesc } }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



141
# File 'lib/impala/protocol/frontend_types.rb', line 141

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


143
144
145
# File 'lib/impala/protocol/frontend_types.rb', line 143

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