Bitwise operations
Provides a wrapper around the java bitwise operations.
apoc.bitwise.op(a long, "operation", b long ) as <identifier> |
examples
operator | name | example | result |
---|---|---|---|
a & b |
AND |
|
12 |
a | b |
OR |
|
61 |
a ^ b |
XOR |
|
49 |
~a |
NOT |
|
-61 |
a << b |
LEFT SHIFT |
|
240 |
a >> b |
RIGHT SHIFT |
|
15 |
a >>> b |
UNSIGNED RIGHT SHIFT |
|
15 |