(
ctx: &DecoderContext,
data_type: &DataType,
is_nullable: bool,
)
| 38 | |
| 39 | impl<R: RunEndIndexType> RunEndEncodedArrayDecoder<R> { |
| 40 | pub fn new( |
| 41 | ctx: &DecoderContext, |
| 42 | data_type: &DataType, |
| 43 | is_nullable: bool, |
| 44 | ) -> Result<Self, ArrowError> { |
| 45 | let values_field = match data_type { |
| 46 | DataType::RunEndEncoded(_, v) => v, |
| 47 | _ => unreachable!(), |
| 48 | }; |
| 49 | let decoder = ctx.make_decoder( |
| 50 | values_field.data_type(), |
| 51 | values_field.is_nullable() || is_nullable, |
| 52 | )?; |
| 53 | |
| 54 | Ok(Self { |
| 55 | data_type: data_type.clone(), |
| 56 | decoder, |
| 57 | phantom: Default::default(), |
| 58 | }) |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | impl<R: RunEndIndexType + Send> ArrayDecoder for RunEndEncodedArrayDecoder<R> { |
nothing calls this directly
no test coverage detected