Class: Impala::Protocol::TCatalogUpdate

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

Constant Summary collapse

TARGET_TABLE =
1
DB_NAME =
2
CREATED_PARTITIONS =
3
FIELDS =
{
TARGET_TABLE => { :type => ::Thrift::Types::STRING, :name => 'target_table' },
DB_NAME => { :type => ::Thrift::Types::STRING, :name => 'db_name' },
CREATED_PARTITIONS => { :type => ::Thrift::Types::SET, :name => 'created_partitions', :element => { :type => ::Thrift::Types::STRING } }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


221
222
223
224
225
# File 'lib/impala/protocol/frontend_types.rb', line 221

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