IntArg creates an expression referencing the integer value of the argument at the given index. At runtime, an argument which is not an integer reads as defaultVal, and a negative integer reads as 0. When estimating, a literal argument reads as its value, and a non-literal argument is unbounded from
(index int, defaultVal uint64)
| 269 | // as 0. When estimating, a literal argument reads as its value, and a non-literal argument is |
| 270 | // unbounded from model version 1 (or FixedSizeEstimate(defaultVal) at version 0). |
| 271 | func IntArg(index int, defaultVal uint64) QuantityExpr { |
| 272 | return intArgExpr{index: index, defaultVal: defaultVal} |
| 273 | } |
| 274 | |
| 275 | // targetExpr represents the size of the receiver/target object. |
| 276 | type targetExpr struct{} |
no outgoing calls