static internal YcsbWorker Generate( int txCount, int queryCount, YCSBDataGenerator gen, TransactionExecution txExec) { YcsbWorker workload = new YcsbWorker(); workload.txs = new List <YcsbTx>(txCount); workload.txExec = txExec; for (int i = 0; i < txCount; ++i) { workload.txs.Add(YcsbTx.Generate(queryCount, gen)); } return(workload); }
static internal YcsbTx Generate(int queryCount, YCSBDataGenerator gen) { YcsbTx tx = new YcsbTx { queries = new YcsbQuery[queryCount] }; for (int i = 0; i < queryCount; ++i) { tx.queries[i] = YcsbQuery.Generate(gen); } return(tx); }