Package org.gridgain.tpcds.answer
Class AnsValueMatcher
java.lang.Object
org.hamcrest.BaseMatcher<Object>
org.gridgain.tpcds.answer.AnsValueMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<Object>,org.hamcrest.SelfDescribing
Hamcrest matcher for comparing actual values with expected ANS file values.
This matcher handles type conversions and provides appropriate matching logic for different data types including numbers, strings, dates, and null values. It uses tolerance-based matching for floating-point numbers.
-
Constructor Summary
ConstructorsConstructorDescriptionAnsValueMatcher(String expectedValue) AnsValueMatcher(String expectedValue, BigDecimal tolerance) -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeMismatch(Object item, org.hamcrest.Description description) voiddescribeTo(org.hamcrest.Description description) static org.hamcrest.Matcher<Object>isAnsValue(String expectedValue) booleanMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
AnsValueMatcher
-
AnsValueMatcher
-
-
Method Details