MCPcopy Create free account
hub / github.com/apache/arrow-rs / pad_nulls

Method pad_nulls

parquet/src/arrow/buffer/dictionary_buffer.rs:203–219  ·  view source on GitHub ↗
(
        &mut self,
        read_offset: usize,
        values_read: usize,
        levels_read: usize,
        valid_mask: &[u8],
    )

Source from the content-addressed store, hash-verified

201 }
202
203 fn pad_nulls(
204 &mut self,
205 read_offset: usize,
206 values_read: usize,
207 levels_read: usize,
208 valid_mask: &[u8],
209 ) {
210 match self {
211 Self::Dict { keys, .. } => {
212 keys.resize(read_offset + levels_read, K::default());
213 keys.pad_nulls(read_offset, values_read, levels_read, valid_mask)
214 }
215 Self::Values { values, .. } => {
216 values.pad_nulls(read_offset, values_read, levels_read, valid_mask)
217 }
218 }
219 }
220}
221
222macro_rules! dict_helper {

Callers 1

test_dictionary_bufferFunction · 0.45

Calls 2

defaultFunction · 0.85
resizeMethod · 0.45

Tested by 1

test_dictionary_bufferFunction · 0.36