binary_all_xor() (aggregation function)
Learn how to use the binary_all_xor() function to aggregate values using the binary XOR operation.
Accumulates values using the binary XOR operation for each summarization group, or in total if a group is not specified.
Syntax
binary_all_xor (expr)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| expr | long | ✔️ | The value used for the binary XOR calculation. |
Returns
Returns a value that is aggregated using the binary XOR operation over records for each summarization group, or in total if a group isn’t specified.
Example
The following example produces CAFEF00D using binary XOR operations:
datatable(num:long)
[
0x44404440,
0x1E1E1E1E,
0x90ABBA09,
0x000B105A,
]
| summarize result = toupper(tohex(binary_all_xor(num)))
Output
| results |
|---|
| CAFEF00D |
Related content
- Aggregation function types at a glance
- binary_all_or() (aggregation function)
- binary_all_and() (aggregation function)
- binary_xor()
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.