Package org.voltdb

Class Expectation

java.lang.Object
org.voltdb.Expectation

public class Expectation extends Object
This class contains an enum Type with values that correspond to the Expectation typed attributes of VoltProcedure, including EXPECT_EMPTY, EXPECT_ONE_ROW, EXPECT_ZERO_OR_ONE_ROW, EXPECT_NON_EMPTY, EXPECT_SCALAR, EXPECT_SCALAR_LONG, and EXPECT_SCALAR_MATCH. An Expectation can be passed into VoltProcedure.voltQueueSQL to enable automatic validation of the results. If the results do not match the specified condition, a VoltAbortException is thrown.