The world's most popular open source database
#include <ndb_global.h>#include "SimpleProperties.hpp"#include <NdbOut.hpp>Include dependency graph for sp_test.cpp:

Go to the source code of this file.
Classes | |
| struct | Test |
Functions | |
| int | writer () |
| int | reader (Uint32 *, Uint32 len) |
| int | unpack (Uint32 *, Uint32 len) |
| int | main () |
Variables | |
| Uint32 | page [8192] |
| static const SimpleProperties::SP2StructMapping | test_map [] |
| static unsigned | test_map_sz = sizeof(test_map)/sizeof(test_map[0]) |
| int main | ( | void | ) |
Definition at line 55 of file sp_test.cpp.
References ndbout(), and SimpleProperties::Reader::printAll().
Referenced by NDB_CPC::socketcomm::SocketComm::connect(), NDB_CPC::socketcomm::SocketComm::disconnect(), Suma::execALTER_TAB_REQ(), DbUtil::execUTIL_PREPARE_REQ(), main(), Trix::prepareInsertTransactions(), Dbdict::prepareUtilTransaction(), NDB_CPC::socketcomm::SocketComm::readLine(), and DbUtil::readPrepareProps().
00055 { 00056 SimplePropertiesLinearReader it(pages, len); 00057 00058 it.printAll(ndbout); 00059 return 0; 00060 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 82 of file sp_test.cpp.
References assert, SimpleProperties::Break, SimpleProperties::Eof, ndbout(), status, test, test_map_sz, and SimpleProperties::unpack().
Referenced by main(), and recreate_table().
00082 { 00083 Test test; 00084 SimplePropertiesLinearReader it(pages, len); 00085 SimpleProperties::UnpackStatus status; 00086 while((status = SimpleProperties::unpack(it, &test, test_map, test_map_sz, 00087 true, false)) == SimpleProperties::Break){ 00088 ndbout << "test.val1 = " << test.val1 << endl; 00089 ndbout << "test.val7 = " << test.val7 << endl; 00090 ndbout << "test.val3 = " << test.val3 << endl; 00091 it.next(); 00092 } 00093 assert(status == SimpleProperties::Eof); 00094 return 0; 00095 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int writer | ( | ) |
Definition at line 37 of file sp_test.cpp.
References SimpleProperties::Writer::add(), SimpleProperties::Writer::first(), LinearWriter::getWordsUsed(), ndbout_c(), and page.
Referenced by NDB_CPC::socketcomm::SocketComm::connect(), NDB_CPC::socketcomm::SocketComm::disconnect(), main(), ha_archive::optimize(), ha_archive::real_write_row(), and NDB_CPC::socketcomm::SocketComm::writeMessage().
00037 { 00038 LinearWriter w(&page[0], 8192); 00039 00040 w.first(); 00041 w.add(1, 2); 00042 w.add(7, 3); 00043 w.add(3, "jonas"); 00044 w.add(5, "0123456789"); 00045 w.add(7, 4); 00046 w.add(3, "e cool"); 00047 w.add(5, "9876543210"); 00048 00049 ndbout_c("WordsUsed = %d", w.getWordsUsed()); 00050 00051 return w.getWordsUsed(); 00052 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 22 of file sp_test.cpp.
Referenced by Undo_buffer::alloc_copy_tuple(), btr_compress(), btr_copy_externally_stored_field(), btr_create(), btr_cur_insert_if_possible(), btr_cur_open_at_index_side(), btr_cur_open_at_rnd_pos(), btr_cur_optimistic_delete(), btr_cur_optimistic_insert(), btr_cur_optimistic_update(), btr_cur_pess_upd_restore_supremum(), btr_cur_pessimistic_delete(), btr_cur_pessimistic_insert(), btr_cur_pessimistic_update(), btr_cur_search_to_nth_level(), btr_cur_update_in_place_log(), btr_discard_page(), btr_estimate_number_of_different_key_vals(), btr_free_externally_stored_field(), btr_get_next_user_rec(), btr_get_prev_user_rec(), btr_node_ptr_get_child(), btr_page_get_split_rec_to_left(), btr_page_get_split_rec_to_right(), btr_page_get_sure_split_rec(), btr_page_insert_fits(), btr_page_split_and_insert(), btr_pcur_move_backward_from_page(), btr_pcur_move_to_next_page(), btr_pcur_release_leaf(), btr_pcur_restore_position(), btr_pcur_store_position(), btr_search_drop_page_hash_when_freed(), btr_search_guess_on_hash(), btr_search_validate(), btr_store_big_rec_extern_fields(), Dbtup::dealloc_tuple(), dict_hdr_create(), Dbtup::disk_page_abort_prealloc(), Dbtup::disk_page_log_buffer_callback(), Dbtup::disk_page_prealloc(), do_malloc(), do_test(), Dbtup::do_tup_abortreq(), Dbtup::drop_fragment_free_var_pages(), Dbtup::drop_fragment_unmap_page_callback(), Tsman::end_lcp(), Tsman::execALLOC_EXTENT_REQ(), Tsman::execALLOC_PAGE_REQ(), Tsman::execDUMP_STATE_ORD(), Tsman::execFREE_EXTENT_REQ(), Tsman::execFSREADCONF(), Lgman::execFSREADCONF(), Tsman::execFSWRITEREQ(), Lgman::execFSWRITEREQ(), Suma::execSUB_GCP_COMPLETE_REP(), Dbtup::execTUP_COMMITREQ(), fil_create_new_single_table_tablespace(), fil_load_single_table_tablespace(), fil_node_open_file(), fil_open_single_table_tablespace(), fil_reset_too_high_lsns(), Lgman::flush_log(), Lgman::force_log_sync(), Undo_buffer::free_copy_tuple(), Suma::free_page(), fsp_alloc_free_page(), fsp_header_init(), fsp_init_file_page_low(), Pgman::fsreadconf(), Suma::get_buffer_ptr(), Dbtup::get_empty_var_page(), get_hash_link(), Lgman::get_log_buffer(), Lgman::get_next_undo_record(), Tsman::get_page_free_bits(), WOPool::getPtr(), RWPool::getPtr(), WOPool::handle_inconsistent_release(), ibuf_header_page_get(), ibuf_tree_root_get(), Lgman::init_run_undo_log(), lock_print_info_all_transactions(), lock_rec_create(), lock_rec_print(), lock_rec_validate_page(), lock_sec_rec_some_has_impl_off_kernel(), main(), operator<<(), os_awe_map_physical_mem_to_window(), Suma::out_of_buffer_release(), page_create(), page_cur_delete_rec(), page_cur_insert_rec_low(), page_dir_find_owner_slot(), page_dir_slot_check(), page_rec_get_n_recs_before(), page_rec_validate(), Pgman::pageout(), print_data_page(), print_extent_page(), print_undo_page(), print_zero_page(), recv_apply_hashed_log_recs(), recv_apply_log_recs_for_backup(), RWPool::release(), Tsman::release_extent_pages(), Suma::release_gci(), WOPool::release_not_current(), Suma::resend_bucket(), Dbtup::restart_setup_page(), Tsman::restart_undo_page_free_bits(), row_ins_index_entry_low(), Tsman::scan_extent_headers(), Dbtup::scanNext(), RWPool::seize(), WOPool::seize_new_page(), Suma::seize_page(), Undo_buffer::shrink_copy_tuple(), Lgman::stop_run_undo_log(), trx_purge_get_next_rec(), trx_rseg_header_create(), trx_sys_create_doublewrite_buf(), trx_sys_doublewrite_init_or_restore_pages(), trx_sys_mark_upgraded_to_multiple_tablespaces(), trx_sysf_create(), unlink_hash(), Tsman::update_page_free_bits(), Dbtup::validate_page(), Lgman::write_log_pages(), and writer().
const SimpleProperties::SP2StructMapping test_map[] [static] |
Initial value:
{
{ 1, offsetof(Test, val1), SimpleProperties::Uint32Value, 0, ~0 },
{ 7, offsetof(Test, val7), SimpleProperties::Uint32Value, 0, ~0 },
{ 3, offsetof(Test, val3), SimpleProperties::StringValue, 0, sizeof(100) },
{ 5, 0, SimpleProperties::InvalidValue, 0, 0 }
}
Definition at line 71 of file sp_test.cpp.
unsigned test_map_sz = sizeof(test_map)/sizeof(test_map[0]) [static] |
1.4.7

