-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: cleanup in vortex-ipc & vortex-file (#1553)
- Loading branch information
Showing
12 changed files
with
181 additions
and
148 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
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#![allow(dead_code)] | ||
#![allow(unused_variables)] | ||
use std::ops::Range; | ||
use std::sync::{Arc, RwLock}; | ||
|
||
use vortex_array::ArrayData; | ||
use vortex_error::VortexResult; | ||
use vortex_io::VortexReadAt; | ||
|
||
use crate::{InitialRead, LayoutMessageCache, VortexFileArrayStream}; | ||
|
||
pub struct VortexFileArrayReader<R> { | ||
read: R, | ||
initial: InitialRead, | ||
|
||
message_cache: Arc<RwLock<LayoutMessageCache>>, | ||
} | ||
|
||
impl<R: VortexReadAt> VortexFileArrayReader<R> { | ||
pub fn row_count(&self) -> usize { | ||
self.initial.fb_layout().row_count() as usize | ||
} | ||
|
||
/// Read a single row range from the Vortex file. | ||
pub async fn read_range(&self, _row_range: Range<usize>) -> VortexResult<ArrayData> { | ||
todo!() | ||
} | ||
|
||
/// Stream the chunks of the Vortex file. | ||
pub fn into_stream(self) -> VortexFileArrayStream<R> { | ||
todo!() | ||
} | ||
} |
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
Oops, something went wrong.