GROPU_BITMAP_OR
Introduction
The GROPU_BITMAP_OR function is used to perform a bitwise OR operation on a set of Bitmap data and returns the final result. This function is highly efficient when dealing with large-scale datasets, especially in scenarios where union operations on multiple Bitmaps are required. It can directly return the final Bitmap result without intermediate states.
Syntax
Parameters
bitmap: An expression of typeBITMAP, representing the Bitmap data to be operated on.
Return Value
The function returns a result of type INT, representing the result of the bitwise OR operation on all input Bitmaps.
Usage Example
Example 1: Computing the Bitwise OR of Multiple Bitmaps
Assume there is a table t with a column v that stores multiple arrays. Now, we need to compute the result of the bitwise OR operation on these arrays.
Notes
- Input Type: Ensure that the input
bitmapis of typeBITMAP; otherwise, the function execution will fail. - Client Support: Clients may not support directly printing
BITMAPtype results. If you need to view the results, you can use thebitmapToArrayfunction to convert the Bitmap to an array format.
