Enum UnaryOperationKind
Enumeration of the unary operations supported. Only can be appended at the end, because mp use the index for type inference
Namespace: Mangrove.MetricSetSyntaxTree.ExpressionNodes
Assembly: MetricSetSyntaxTree.dll
Syntax
public enum UnaryOperationKind
Fields
| Name | Description |
|---|---|
| AbsoluteValue | Absolute value of an expression. |
| BitNegation | Bitwise Negation |
| BooleanNegation | Boolean negation (e.g. !c). |
| Ceiling | The smallest integral value greater than or equal to an expression (e.g. Math.Ceiling(expr)) |
| CreateHistogram | Create histogram with one key and the corresponding value = 1. |
| Date | Get the date component of a DateTime |
| Days | Gets the days component of the time interval represented by the current TimeSpan structure. |
| Exp | Exponentiate a numeric expression (e.g., e^c). |
| FromUnixTimestamp | Convert a Long representing a Unix timestamp (seconds) to the corresponding DateTime. |
| GetKeyCount | Given a histogram, get the number of unique keys (bins) |
| GetSumOfValues | Count the entries of histograms |
| Hours | Gets the hours component of the time interval represented by the current TimeSpan structure. |
| IsNotNull | Check if expression is not null |
| IsNull | Check if expression is null |
| Log | Natural logarithm of a numeric expression. |
| Milliseconds | Gets the milliseconds component of the time interval represented by the current TimeSpan structure. |
| Minutes | Gets the minutes component of the time interval represented by the current TimeSpan structure. |
| MultiplyBySumOfValues | Given a histogram, multiply all non-null values by the total sum of the values in the histogram. |
| Negative | Negate a numeric expression (e.g., -c). |
| None | |
| Parentheses | Parentheses around another expression (e.g., (expr)). |
| Parse | |
| Seconds | Gets the seconds component of the time interval represented by the current TimeSpan structure. |
| Sqrt | Positive square root of an expression |
| SumOfSquaresDifferences | Given a histogram, create a new histogram such that for each key K, the value V is the difference between squares of the sum of values for all the keys up to K and the sum of values for all the keys strictly less than K. |
| Ticks | Gets the number of ticks that represent the value of the current TimeSpan structure. |
| ToLower | Converted to lowercase of an expression (e.g. expr.ToLower()) |
| ToString | String representation of an expression (e.g. bool true -> string "true") |
| TotalDays | Gets the value of the current TimeSpan structure expressed in whole and fractional days. |
| TotalHours | Gets the value of the current TimeSpan structure expressed in whole and fractional hours. |
| TotalMilliseconds | Gets the value of the current TimeSpan structure expressed in whole and fractional milliseconds. |
| TotalMinutes | Gets the value of the current TimeSpan structure expressed in whole and fractional minutes. |
| TotalSeconds | Gets the value of the current TimeSpan structure expressed in whole and fractional seconds. |
| ToUnixTimestamp | Convert a DateTime to a Long representing the corresponding Unix timestamp in seconds. |
| ToUpper | Converted to uppercase of an expression (e.g. expr.ToUpper()) |
| Trim | Removes all leading and trailing occurrences of white-space characters from the current string. |
| TypeCast | Cast from an underlying type to the TypeKind of the UnaryOperation. |