| 702 | private: |
| 703 | template <class T> |
| 704 | void SerializeObject(const T* obj) { |
| 705 | try { |
| 706 | mem_buffer_->resetBuffer(); |
| 707 | obj->write(protocol_.get()); |
| 708 | } catch (std::exception& e) { |
| 709 | std::stringstream ss; |
| 710 | ss << "Couldn't serialize thrift: " << e.what() << "\n"; |
| 711 | throw ParquetException(ss.str()); |
| 712 | } |
| 713 | } |
| 714 | |
| 715 | int64_t SerializeEncryptedObj(ArrowOutputStream* out, const uint8_t* out_buffer, |
| 716 | uint32_t out_length, Encryptor* encryptor) { |
nothing calls this directly
no test coverage detected