java.lang.Object
org.apache.arrow.vector.validate.ValidateUtil
Utilities for vector validation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA exception that is thrown when the vector validation fails. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateOrThrow(boolean expression, String errorMessage) Validate the expression.static voidvalidateOrThrow(boolean expression, String errorMessage, Object... args) Validate the expression.
-
Method Details
-
validateOrThrow
Validate the expression.- Parameters:
expression- the expression to validate.errorMessage- the error message.- Throws:
ValidateUtil.ValidateException- if the expression evaluates to false.
-
validateOrThrow
Validate the expression.- Parameters:
expression- the expression to validate.errorMessage- the error message template.args- the error message arguments.- Throws:
ValidateUtil.ValidateException- if the expression evaluates to false.
-