pub struct ArrowBatchCache {
pub table_cache: Cache<String, Arc<RecordBatch>>,
pub metadata_cache: Cache<u64, ArrowBatchFileMetadata>,
/* private fields */
}Fields§
§table_cache: Cache<String, Arc<RecordBatch>>§metadata_cache: Cache<u64, ArrowBatchFileMetadata>Implementations§
Source§impl ArrowBatchCache
impl ArrowBatchCache
pub fn new(context: Arc<Mutex<ArrowBatchContext>>) -> Self
pub fn get_metadata_for( &self, adjusted_ordinal: u64, locked_context: Option<Arc<MutexGuard<'_, ArrowBatchContext>>>, ) -> u64
pub fn direct_load_table( &self, adjusted_ordinal: u64, batch_index: usize, locked_context: Option<Arc<MutexGuard<'_, ArrowBatchContext>>>, ) -> Option<RecordBatch>
pub fn get_table_for( &self, ordinal: u64, locked_context: Option<Arc<MutexGuard<'_, ArrowBatchContext>>>, ) -> Option<Arc<RecordBatch>>
Auto Trait Implementations§
impl Freeze for ArrowBatchCache
impl !RefUnwindSafe for ArrowBatchCache
impl Send for ArrowBatchCache
impl Sync for ArrowBatchCache
impl Unpin for ArrowBatchCache
impl !UnwindSafe for ArrowBatchCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more