Package org.apache.arrow.vector.validate
Class ValidateUtil
java.lang.Object
org.apache.arrow.vector.validate.ValidateUtil
Utilities for vector validation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A exception that is thrown when the vector validation fails. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
validateOrThrow
(boolean expression, String errorMessage) Validate the expression.static void
validateOrThrow
(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.
-