pub struct InMemoryCatalog { /* private fields */ }Expand description
An in-memory catalog backed by a sorted map.
Implementations§
Source§impl InMemoryCatalog
impl InMemoryCatalog
Sourcepub fn register_table_with_batches(
&mut self,
metadata: TableMetadata,
batches: Vec<RecordBatch>,
) -> CatalogResult<()>
pub fn register_table_with_batches( &mut self, metadata: TableMetadata, batches: Vec<RecordBatch>, ) -> CatalogResult<()>
Register a table and attach in-memory Arrow batches for SQL scans (P0-9).
Sourcepub fn table_batches(&self, name: &str) -> Option<Arc<Vec<RecordBatch>>>
pub fn table_batches(&self, name: &str) -> Option<Arc<Vec<RecordBatch>>>
Return stored batches for a registered table, if any.
Trait Implementations§
Source§impl CatalogProvider for InMemoryCatalog
impl CatalogProvider for InMemoryCatalog
Source§fn list_tables(&self) -> Vec<String>
fn list_tables(&self) -> Vec<String>
Return the names of all tables in the catalog.
Source§fn get_table(&self, name: &str) -> CatalogResult<&dyn TableProvider>
fn get_table(&self, name: &str) -> CatalogResult<&dyn TableProvider>
Look up a table by name.
Source§fn register_table(&mut self, metadata: TableMetadata) -> CatalogResult<()>
fn register_table(&mut self, metadata: TableMetadata) -> CatalogResult<()>
Register a table in the catalog. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for InMemoryCatalog
impl !UnwindSafe for InMemoryCatalog
impl Freeze for InMemoryCatalog
impl Send for InMemoryCatalog
impl Sync for InMemoryCatalog
impl Unpin for InMemoryCatalog
impl UnsafeUnpin for InMemoryCatalog
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request