| 1767 | } |
| 1768 | |
| 1769 | Result<IpcReadContext> GetIpcReadContext(const flatbuf::Message* message, |
| 1770 | const flatbuf::RecordBatch* batch) { |
| 1771 | IpcReadContext context(&dictionary_memo_, options_, swap_endian_); |
| 1772 | Compression::type compression; |
| 1773 | RETURN_NOT_OK(GetCompression(batch, &compression)); |
| 1774 | if (context.compression == Compression::UNCOMPRESSED && |
| 1775 | message->version() == flatbuf::MetadataVersion::MetadataVersion_V4) { |
| 1776 | // Possibly obtain codec information from experimental serialization format |
| 1777 | // in 0.17.x |
| 1778 | RETURN_NOT_OK(GetCompressionExperimental(message, &compression)); |
| 1779 | } |
| 1780 | context.compression = compression; |
| 1781 | context.metadata_version = internal::GetMetadataVersion(message->version()); |
| 1782 | return context; |
| 1783 | } |
| 1784 | |
| 1785 | Result<const flatbuf::RecordBatch*> GetBatchFromMessage( |
| 1786 | const flatbuf::Message* message) { |
nothing calls this directly
no test coverage detected