示例#1
0
int baseline_ssb_client_t::load_sup_xct(mapSupTrxs& stmap)
{
    // clears the supported trx map and loads its own
    stmap.clear();

    // Baseline SSB trxs
        stmap[XCT_SSB_MIX]          = "SSB-Mix";
    //     stmap[XCT_SSB_Q1_1]           = "SSB-Q1_1";
//     stmap[XCT_SSB_Q1_2]           = "SSB-Q1_2";
//     stmap[XCT_SSB_Q1_3]           = "SSB-Q1_3";
//     stmap[XCT_SSB_Q2_1]           = "SSB-Q2_1";
//     stmap[XCT_SSB_Q2_2]           = "SSB-Q2_2";
//     stmap[XCT_SSB_Q2_3]           = "SSB-Q2_3";
//     stmap[XCT_SSB_Q3_1]           = "SSB-Q3_1";
//     stmap[XCT_SSB_Q3_2]           = "SSB-Q3_2";
//     stmap[XCT_SSB_Q3_3]           = "SSB-Q3_3";
//     stmap[XCT_SSB_Q3_4]           = "SSB-Q3_4";
//     stmap[XCT_SSB_Q4_1]           = "SSB-Q4_1";
//     stmap[XCT_SSB_Q4_2]           = "SSB-Q4_2";
//     stmap[XCT_SSB_Q4_3]           = "SSB-Q4_3";



#ifdef CFG_QPIPE

    stmap[XCT_QPIPE_SSB_MIX]               = "QPIPE-SSB-MIX";

    uint qpipebase = XCT_QPIPE_SSB_MIX - XCT_SSB_MIX;

     stmap[qpipebase + XCT_SSB_Q1_1]           = "QPIPE-SSB-Q1_1";
     stmap[qpipebase + XCT_SSB_Q1_2]           = "QPIPE-SSB-Q1_2";
     stmap[qpipebase + XCT_SSB_Q1_3]           = "QPIPE-SSB-Q1_3";
     stmap[qpipebase + XCT_SSB_Q2_1]           = "QPIPE-SSB-Q2_1";
     stmap[qpipebase + XCT_SSB_Q2_2]           = "QPIPE-SSB-Q2_2";
     stmap[qpipebase + XCT_SSB_Q2_3]           = "QPIPE-SSB-Q2_3";
     stmap[qpipebase + XCT_SSB_Q3_1]           = "QPIPE-SSB-Q3_1";
     stmap[qpipebase + XCT_SSB_Q3_2]           = "QPIPE-SSB-Q3_2";
     stmap[qpipebase + XCT_SSB_Q3_3]           = "QPIPE-SSB-Q3_3";
     stmap[qpipebase + XCT_SSB_Q3_4]           = "QPIPE-SSB-Q3_4";
     stmap[qpipebase + XCT_SSB_Q4_1]           = "QPIPE-SSB-Q4_1";
     stmap[qpipebase + XCT_SSB_Q4_2]           = "QPIPE-SSB-Q4_2";
     stmap[qpipebase + XCT_SSB_Q4_3]           = "QPIPE-SSB-Q4_3";
     stmap[qpipebase + XCT_SSB_QPART]            = "QPIPE-SSB-QPART";
     stmap[qpipebase + XCT_SSB_QDATE]            = "QPIPE-SSB-QDATE";
     stmap[qpipebase + XCT_SSB_QSUPPLIER]        = "QPIPE-SSB-QSUPPLIER";
     stmap[qpipebase + XCT_SSB_QCUSTOMER]        = "QPIPE-SSB-QCUSTOMER";
     stmap[qpipebase + XCT_SSB_QLINEORDER]       = "QPIPE-SSB-QLINEORDER";


#endif

    
    return (stmap.size());
}
示例#2
0
文件: ycsb.cpp 项目: iMax3060/zero
int baseline_ycsb_client_t::load_sup_xct(mapSupTrxs& stmap)
{
    stmap.clear();
    stmap[XCT_YCSB_SIMPLE] = "YCSB-Simple";
    return (stmap.size());
}