Class: Impala::Protocol::THBaseTable
- Inherits:
-
Object
- Object
- Impala::Protocol::THBaseTable
- 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_fields ⇒ Object
169 |
# File 'lib/impala/protocol/descriptors_types.rb', line 169 def struct_fields; FIELDS; end |
#validate ⇒ Object
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 |