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

Method set_null_at

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

Source from the content-addressed store, hash-verified

418 }
419
420 pub fn set_null_at(&mut self, pos: usize) {
421 let bit_index = pos + BinaryRow::HEADER_SIZE_IN_BYTES as usize;
422 let byte_index = bit_index / 8;
423 let bit_offset = bit_index % 8;
424 self.data[byte_index] |= 1 << bit_offset;
425 let offset = self.field_offset(pos);
426 self.data[offset..offset + 8].fill(0);
427 }
428
429 pub fn write_boolean(&mut self, pos: usize, value: bool) {
430 let offset = self.field_offset(pos);

Callers 14

from_predicateMethod · 0.45
int_stats_rowFunction · 0.45
null_partition_bytesFunction · 0.45
from_arrowMethod · 0.45
from_datumsMethod · 0.45
datums_to_binary_rowFunction · 0.45
write_typed_valueFunction · 0.45

Calls 1

field_offsetMethod · 0.45

Tested by

no test coverage detected