Zero  0.1.0
Namespaces | Macros | Functions | Variables
tpcc_xct.cpp File Reference

: Implementation of the Baseline Shore TPC-C transactions More...

#include "tpcc_env.h"
#include "tpcc_random.h"
#include "sort.h"
#include <vector>
#include <numeric>
#include <algorithm>

Namespaces

 tpcc
 

Macros

#define A_C_ID   1023
 
#define C_C_ID   127
 
#define C_C_LAST   173
 
#define C_OL_I_ID   1723
 
#define A_C_LAST   255
 
#define A_OL_I_ID   8191
 

Functions

static int tpcc::rand_integer (int lo, int hi)
 
static int tpcc::create_random_a_string (char *out_buffer, int length_lo, int length_hi)
 
static int tpcc::create_random_n_string (char *out_buffer, int length_lo, int length_hi)
 
int tpcc::NUrand_val (int A, int x, int y, int C)
 
int tpcc::create_a_string_with_original (char *out_buffer, int length_lo, int length_hi, int percent_to_set)
 
int tpcc::create_random_last_name (char *out_buffer, int cust_num)
 
void tpcc::test_serialization (table_row_t *prol)
 
 tpcc::DEFINE_TRX (ShoreTPCCEnv, new_order)
 
 tpcc::DEFINE_TRX (ShoreTPCCEnv, payment)
 
 tpcc::DEFINE_TRX (ShoreTPCCEnv, order_status)
 
 tpcc::DEFINE_TRX (ShoreTPCCEnv, delivery)
 
 tpcc::DEFINE_TRX (ShoreTPCCEnv, stock_level)
 
 tpcc::DEFINE_TRX (ShoreTPCCEnv, mbench_wh)
 
 tpcc::DEFINE_TRX (ShoreTPCCEnv, mbench_cust)
 

Variables

static __thread ShoreTPCCTrxStats tpcc::my_stats
 
static char tpcc::alnum []
 
static const char * tpcc::last_name_parts []
 
unsigned int tpcc::delivery_abort_ctr = 0
 

Detailed Description

: Implementation of the Baseline Shore TPC-C transactions

Author
: Ippokratis Pandis (ipandis)

Macro Definition Documentation

§ A_C_ID

#define A_C_ID   1023

§ A_C_LAST

#define A_C_LAST   255

§ A_OL_I_ID

#define A_OL_I_ID   8191

§ C_C_ID

#define C_C_ID   127

§ C_C_LAST

#define C_C_LAST   173

§ C_OL_I_ID

#define C_OL_I_ID   1723