| 1806 | |
| 1807 | template <typename ListViewType> |
| 1808 | Status ImportListView(const ListViewType& type) { |
| 1809 | using offset_type = typename ListViewType::offset_type; |
| 1810 | RETURN_NOT_OK(CheckNumChildren(1)); |
| 1811 | RETURN_NOT_OK(CheckNumBuffers(3)); |
| 1812 | RETURN_NOT_OK(AllocateArrayData()); |
| 1813 | RETURN_NOT_OK(ImportNullBitmap()); |
| 1814 | RETURN_NOT_OK((ImportOffsetsBuffer<offset_type, /*with_extra_offset=*/false>(1))); |
| 1815 | RETURN_NOT_OK(ImportSizesBuffer<offset_type>(2)); |
| 1816 | return Status::OK(); |
| 1817 | } |
| 1818 | |
| 1819 | Status CheckNoChildren() { return CheckNumChildren(0); } |
| 1820 | |