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

Method decode

arrow-json/src/reader/null_array.rs:39–48  ·  view source on GitHub ↗
(&mut self, tape: &Tape<'_>, pos: &[u32])

Source from the content-addressed store, hash-verified

37
38impl ArrayDecoder for NullArrayDecoder {
39 fn decode(&mut self, tape: &Tape<'_>, pos: &[u32]) -> Result<ArrayRef, ArrowError> {
40 if !self.ignore_type_conflicts {
41 for p in pos {
42 if !matches!(tape.get(*p), TapeElement::Null) {
43 return Err(tape.error(*p, "null"));
44 }
45 }
46 }
47 Ok(Arc::new(NullArray::new(pos.len())))
48 }
49}

Callers

nothing calls this directly

Calls 2

errorMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected