MCPcopy Create free account
hub / github.com/questdb/questdb / ofLong

Method ofLong

core/src/main/java/io/questdb/std/Decimal128.java:967–973  ·  view source on GitHub ↗

Set this Decimal128 from a long value with the specified scale. @param value the long value @param scale the desired scale

(long value, int scale)

Source from the content-addressed store, hash-verified

965 * @param scale the desired scale
966 */
967 public void ofLong(long value, int scale) {
968 validateScale(scale);
969
970 this.scale = scale;
971 this.low = value;
972 this.high = value < 0 ? -1L : 0L;
973 }
974
975 /**
976 * Set this Decimal128 to the null value. Zeroes out the scale.

Callers 15

transformMethod · 0.45
transformMethod · 0.45
appendToWal0Method · 0.45
transferByteToDecimalMethod · 0.45
transferDecimal16Method · 0.45
transferDecimal32Method · 0.45
transferDecimal64Method · 0.45
transferDecimal8Method · 0.45
transferIntToDecimalMethod · 0.45
transferLongToDecimalMethod · 0.45

Calls 1

validateScaleMethod · 0.95

Tested by 3

transformMethod · 0.36
transformMethod · 0.36