本文整理汇总了Java中org.voltdb.benchmark.tpcc.procedures.UpdateNewOrder类的典型用法代码示例。如果您正苦于以下问题:Java UpdateNewOrder类的具体用法?Java UpdateNewOrder怎么用?Java UpdateNewOrder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UpdateNewOrder类属于org.voltdb.benchmark.tpcc.procedures包,在下文中一共展示了UpdateNewOrder类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testNonConflictingDisparateTables
import org.voltdb.benchmark.tpcc.procedures.UpdateNewOrder; //导入依赖的package包/类
/**
* testNonConflictingDisparateTables
*/
public void testNonConflictingDisparateTables() throws Exception {
// Quickly check that two read-only txns are non-conflicting
// even without a txn estimate
int basePartition = 0;
PartitionSet partitions = catalogContext.getAllPartitionIds();
Procedure proc0 = this.getProcedure(paymentByCustomerId.class);
LocalTransaction ts0 = new LocalTransaction(this.hstore_site);
Object params0[] = new Object[]{ 0, 1, 2 };
ts0.testInit(10000l, basePartition, partitions, proc0, params0);
Procedure proc1 = this.getProcedure(UpdateNewOrder.class);
LocalTransaction ts1 = new LocalTransaction(this.hstore_site);
Object params1[] = new Object[]{ 0, 0 };
ts1.testInit(10001l, basePartition, partitions, proc1, params1);
boolean ret = this.checker.hasConflictBefore(ts0, ts1, basePartition);
assertFalse(ret);
}