Class: Impala::Protocol::TFinalizeParams

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

Constant Summary collapse

IS_OVERWRITE =
1
HDFS_BASE_DIR =
2
TABLE_NAME =
3
TABLE_DB =
4
FIELDS =
{
IS_OVERWRITE => { :type => ::Thrift::Types::BOOL, :name => 'is_overwrite' },
HDFS_BASE_DIR => { :type => ::Thrift::Types::STRING, :name => 'hdfs_base_dir' },
TABLE_NAME => { :type => ::Thrift::Types::STRING, :name => 'table_name' },
TABLE_DB => { :type => ::Thrift::Types::STRING, :name => 'table_db' }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


246
247
248
249
250
251
# File 'lib/impala/protocol/frontend_types.rb', line 246

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field is_overwrite is unset!') if @is_overwrite.nil?
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hdfs_base_dir is unset!') unless @hdfs_base_dir
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field table_name is unset!') unless @table_name
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field table_db is unset!') unless @table_db
end