Class: Impala::Protocol::TDescribeTableParams

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

Constant Summary collapse

DB =
1
TABLE_NAME =
2
FIELDS =
{
DB => { :type => ::Thrift::Types::STRING, :name => 'db', :optional => true },
TABLE_NAME => { :type => ::Thrift::Types::STRING, :name => 'table_name' }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


126
127
128
# File 'lib/impala/protocol/frontend_types.rb', line 126

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