(&mut self, tape: &Tape<'_>, pos: &[u32])
| 38 | |
| 39 | impl ArrayDecoder for BooleanArrayDecoder { |
| 40 | fn decode(&mut self, tape: &Tape<'_>, pos: &[u32]) -> Result<ArrayRef, ArrowError> { |
| 41 | let mut builder = BooleanBuilder::with_capacity(pos.len()); |
| 42 | for p in pos { |
| 43 | match tape.get(*p) { |
| 44 | TapeElement::Null => builder.append_null(), |
| 45 | TapeElement::True => builder.append_value(true), |
| 46 | TapeElement::False => builder.append_value(false), |
| 47 | _ if self.ignore_type_conflicts => builder.append_null(), |
| 48 | _ => return Err(tape.error(*p, "boolean")), |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | Ok(Arc::new(builder.finish())) |
| 53 | } |
| 54 | } |
nothing calls this directly
no test coverage detected