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

Method get_short

crates/paimon/src/spec/binary_row.rs:171–174  ·  view source on GitHub ↗
(&self, pos: usize)

Source from the content-addressed store, hash-verified

169 }
170
171 pub fn get_short(&self, pos: usize) -> crate::Result<i16> {
172 self.read_slice::<2>(self.field_offset(pos))
173 .map(i16::from_le_bytes)
174 }
175
176 pub fn get_int(&self, pos: usize) -> crate::Result<i32> {
177 self.read_i32_at(self.field_offset(pos))

Callers 3

get_datumMethod · 0.80
format_partition_valueFunction · 0.80
extract_datumFunction · 0.80

Calls 1

field_offsetMethod · 0.45

Tested by

no test coverage detected