GROPU_BITMAP_AND
Introduction
The GROPU_BITMAP_AND
function is used to compute the bitwise AND 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 intersection 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 AND operation on all input Bitmaps.
Example
Example 1: Computing the Bitwise AND 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 AND operation on these arrays.
Result:
Related Functions
groupBitmapAndState
: Returns the intermediate state of the bitwise AND operation, suitable for scenarios where step-by-step calculations are needed.groupBitmapMerge
: Merges multiple intermediate state Bitmap objects.bitmapAnd
: Performs a bitwise AND operation on two Bitmaps.bitmapToArray
: Converts a Bitmap to an array format for easier result inspection.