Ejemplo n.º 1
0
 def gen_page_id2(page_index):
     table_name = '/home/latin/code/latin/python/latin_database/version3/data/test2'
     table_id = Catalog.name_to_id(table_name)
     page_id = PageId(table_id, page_index)
     return page_id
Ejemplo n.º 2
0
 def get_page_id(table_name, page_index):
     table_id = Catalog.name_to_id(table_name)
     pid = PageId(table_id, page_index)
     return pid
Ejemplo n.º 3
0
 def gen_page(table_name, page_index, tuple_num=None):
     tid = Catalog.name_to_id(table_name)
     pid = PageId(tid, page_index)
     tuples = TestUtil.gen_tuples_for_page1(table_name, page_index, tuple_num)
     p = HeapPage(pid, tuples)
     return p