Amazon Timestream for LiveAnalytics will no longer be open to new customers starting June 20, 2025. If you would like to use Amazon Timestream for LiveAnalytics, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see Amazon Timestream for LiveAnalytics availability change.
Bitwise functions
Timestream for LiveAnalytics supports the following bitwise functions.
Function | Output data type | Description |
---|---|---|
bit_count(bigint, bigint) |
bigint (two's complement) |
Returns the count of bits in the first bigint parameter where the second parameter is a bit signed integer such as 8 or 64.
Example result:
Example result: |
bitwise_and(bigint, bigint) |
bigint (two's complement) |
Returns the bitwise AND of the bigint parameters.
Example result: |
bitwise_not(bigint) |
bigint (two's complement) |
Returns the bitwise NOT of the bigint parameter.
Example result: |
bitwise_or(bigint, bigint) |
bigint (two's complement) |
Returns the bitwise OR of the bigint parameters.
Example result: |
bitwise_xor(bigint, bigint) |
bigint (two's complement) |
Returns the bitwise XOR of the bigint parameters.
Example result: |