MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / result_valid_slice_mut

Function result_valid_slice_mut

nodedb-columnar/src/reader/block_decode.rs:137–146  ·  view source on GitHub ↗

Get a mutable slice of the validity vector starting from `offset`.

(result: &mut DecodedColumn, offset: usize)

Source from the content-addressed store, hash-verified

135
136/// Get a mutable slice of the validity vector starting from `offset`.
137pub(super) fn result_valid_slice_mut(result: &mut DecodedColumn, offset: usize) -> &mut [bool] {
138 match result {
139 DecodedColumn::Int64 { valid, .. }
140 | DecodedColumn::Float64 { valid, .. }
141 | DecodedColumn::Timestamp { valid, .. }
142 | DecodedColumn::Bool { valid, .. }
143 | DecodedColumn::Binary { valid, .. }
144 | DecodedColumn::DictEncoded { valid, .. } => &mut valid[offset..],
145 }
146}
147
148/// Decode a single block and append results to the DecodedColumn.
149pub(super) fn decode_block(

Callers 1

read_column_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected