BitwiseAnd / Logical Layer
Create a column by applying bitwise AND operation element-wise between two numeric columns. Similar to numpy bitwise_and() or R's bitwAnd(). Performs binary AND on each bit position.
Example (with binary representation):
Index | Left | Right | Bitwise AND |
---|---|---|---|
0 | 6 (110) | 5 (101) | 4 (100) |
1 | 3 (011) | 7 (111) | 3 (011) |
2 | null | 5 (101) | null |
3 | 8 (1000) | 7 (111) | 0 (000) |
Common applications:
- Flag combination checking
- Permission verification
- Hardware register operations
- Binary protocol handling
- Bit mask filtering
Table
0
0
Table
SelectLeft
columnThe first numeric column for the bitwise AND operation. Values are treated as binary numbers. Null values result in null output.
SelectRight
columnThe second numeric column for the bitwise AND operation. Must be same type as SelectLeft
. Common pairs:
- Values and masks
- Flags and filters
- Raw data and bit patterns
AsColumn
nameName for the new column. If not provided, the system generates a unique name. If AsColumn
matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.