MCPcopy Create free account
hub / github.com/apache/paimon-rust / write_decimal_compact

Method write_decimal_compact

crates/paimon/src/spec/binary_row.rs:505–507  ·  view source on GitHub ↗

Write a compact Decimal (precision <= 18) as its unscaled i64 value.

(&mut self, pos: usize, unscaled: i64)

Source from the content-addressed store, hash-verified

503
504 /// Write a compact Decimal (precision <= 18) as its unscaled i64 value.
505 pub fn write_decimal_compact(&mut self, pos: usize, unscaled: i64) {
506 self.write_long(pos, unscaled);
507 }
508
509 /// Write a non-compact Decimal (precision > 18) as big-endian two's complement bytes (8-byte aligned).
510 pub fn write_decimal_var_len(&mut self, pos: usize, unscaled: i128) {

Callers 3

write_datumMethod · 0.45
write_typed_valueFunction · 0.45
test_get_decimal_compactFunction · 0.45

Calls 1

write_longMethod · 0.45

Tested by

no test coverage detected