Class: Impala::Protocol::THBaseTable

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

Constant Summary collapse

TABLENAME =
1
FAMILIES =
2
QUALIFIERS =
3
FIELDS =
{
TABLENAME => { :type => ::Thrift::Types::STRING, :name => 'tableName' },
FAMILIES => { :type => ::Thrift::Types::LIST, :name => 'families', :element => { :type => ::Thrift::Types::STRING } },
QUALIFIERS => { :type => ::Thrift::Types::LIST, :name => 'qualifiers', :element => { :type => ::Thrift::Types::STRING } }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



169
# File 'lib/impala/protocol/descriptors_types.rb', line 169

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


171
172
173
174
175
# File 'lib/impala/protocol/descriptors_types.rb', line 171

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