This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for IPC 2.0 (compression).
- Loading branch information
1 parent
c93b3eb
commit 5b24f33
Showing
10 changed files
with
370 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,6 +169,7 @@ pub fn flight_data_to_arrow_batch( | |
&dictionaries_by_field, | ||
&mut reader, | ||
0, | ||
message.compression(), | ||
) | ||
})? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use std::io::Read; | ||
|
||
use crate::error::Result; | ||
|
||
pub fn decompress_lz4(input_buf: &[u8], output_buf: &mut [u8]) -> Result<()> { | ||
let mut decoder = lz4::Decoder::new(input_buf)?; | ||
decoder.read_exact(output_buf).map_err(|e| e.into()) | ||
} | ||
|
||
pub fn decompress_zstd(input_buf: &[u8], output_buf: &mut [u8]) -> Result<()> { | ||
let mut decoder = zstd::Decoder::new(input_buf)?; | ||
decoder.read_exact(output_buf).map_err(|e| e.into()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
pub mod gen; | ||
|
||
pub(crate) mod common; | ||
mod compression; | ||
mod convert; | ||
|
||
pub use convert::fb_to_schema; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.