Bitwise operations performing on long expressions.
Calculates the bitwise and between two long expressions.
bitwiseAnd(long expression, long expression)
The data type of the returned value is long.
data record(a = 0, b = 0),record(a = 0, b = 1),record(a = 1, b = 0),record(a = 1, b = 1),record(a = 12, b = 10)| fieldsAdd bitwiseAnd(a, b)
Query result:
Counts the bits assigned to one of the long expressions.
bitwiseCountOnes(long expression)
The data type of the returned value is long.
data record(a = 0),record(a = 1),record(a = -1),record(a = 9223372036854775807),record(a = -9223372036854775807),record(a = 12)| fieldsAdd bitwiseCountOnes(a)
Query result:
Inverts the bits included in the long expression.
bitwiseNot(long expression)
The data type of the returned value is long.
data record(a = 0),record(a = 1),record(a = -1),record(a = 9223372036854775807),record(a = -9223372036854775808),record(a = 12)| fieldsAdd bitwiseNot(a)
Query result:
Shifts the long expressions by the number of given bits to the left.
bitwiseShiftLeft(long expression, long expression)
The data type of the returned value is long.
data record(a = 0, bits = 1),record(a = 1, bits = 1),record(a = 1, bits = 2),record(a = 9223372036854775807, bits = 1),record(a = -9223372036854775808, bits = 1)| fieldsAdd bitwiseShiftLeft(a, bits)
Query result:
Shifts the long expression by number of given bits to the right. It has an optional parameter ignoreSign, that defines, if the sign bit should be ignored. If the parameter is false, it can be compared to >> in Java, otherwise to >>>.
bitwiseShiftRight(long expression, long expression, ignoreSign: boolean)
The data type of the returned value is long.
data record(a = 0, bits = 1),record(a = 1, bits = 1),record(a = 1, bits = 2),record(a = 9223372036854775807, bits = 1),record(a = -9223372036854775808, bits = 1),record(a = -1, bits = 2)| fieldsAdd bitwiseShiftRight(a, bits, ignoreSign: false),bitwiseShiftRight(a, bits, ignoreSign: true)
Query result:
Calculates the bitwise or between two long expressions.
bitwiseOr(long expression, long expression)
The data type of the returned value is long.
data record(a = 0, b = 0),record(a = 0, b = 1),record(a = 1, b = 0),record(a = 1, b = 1),record(a = 12, b = 10)| fieldsAdd bitwiseOr(a, b)
Query result:
Calculates the bitwise xor between two long expressions.
bitwiseXor(long expression, long expression)
The data type of the returned value is long.
data record(a = 0, b = 0),record(a = 0, b = 1),record(a = 1, b = 0),record(a = 1, b = 1),record(a = 12, b = 10)| fieldsAdd bitwiseXor(a, b)
Query result: