pub struct TableScopedPath {
pub table: Option<TableReference>,
pub path: Path,
}Fields§
§table: Option<TableReference>§path: PathTrait Implementations§
Source§impl CacheAccessor<TableScopedPath, Arc<Vec<ObjectMeta>>> for DefaultListFilesCache
impl CacheAccessor<TableScopedPath, Arc<Vec<ObjectMeta>>> for DefaultListFilesCache
Source§fn get(&self, k: &TableScopedPath) -> Option<Arc<Vec<ObjectMeta>>>
fn get(&self, k: &TableScopedPath) -> Option<Arc<Vec<ObjectMeta>>>
Gets all files for the given table base path.
This is equivalent to calling get_with_extra(k, &None).
Source§fn get_with_extra(
&self,
table_scoped_path: &TableScopedPath,
prefix: &Self::Extra,
) -> Option<Arc<Vec<ObjectMeta>>>
fn get_with_extra( &self, table_scoped_path: &TableScopedPath, prefix: &Self::Extra, ) -> Option<Arc<Vec<ObjectMeta>>>
Performs a prefix-aware cache lookup.
§Arguments
table_base- The table’s base path (the cache key)prefix- Optional prefix filter (relative to table base) for partition filtering
§Behavior
- Fetches the cache entry for
table_base - If
prefixisSome, filters results to only files matchingtable_base/prefix - Returns the (potentially filtered) results
This enables efficient partition pruning - a single cached listing of the full table can serve queries for any partition subset without additional storage calls.
type Extra = Option<Path>
Source§fn put(
&self,
key: &TableScopedPath,
value: Arc<Vec<ObjectMeta>>,
) -> Option<Arc<Vec<ObjectMeta>>>
fn put( &self, key: &TableScopedPath, value: Arc<Vec<ObjectMeta>>, ) -> Option<Arc<Vec<ObjectMeta>>>
Put value into cache. Returns the old value associated with the key if there was one.
Source§fn put_with_extra(
&self,
key: &TableScopedPath,
value: Arc<Vec<ObjectMeta>>,
_e: &Self::Extra,
) -> Option<Arc<Vec<ObjectMeta>>>
fn put_with_extra( &self, key: &TableScopedPath, value: Arc<Vec<ObjectMeta>>, _e: &Self::Extra, ) -> Option<Arc<Vec<ObjectMeta>>>
Put value into cache. Returns the old value associated with the key if there was one.
Source§fn remove(&self, k: &TableScopedPath) -> Option<Arc<Vec<ObjectMeta>>>
fn remove(&self, k: &TableScopedPath) -> Option<Arc<Vec<ObjectMeta>>>
Remove an entry from the cache, returning value if they existed in the map.
Source§fn contains_key(&self, k: &TableScopedPath) -> bool
fn contains_key(&self, k: &TableScopedPath) -> bool
Check if the cache contains a specific key.
Source§impl Clone for TableScopedPath
impl Clone for TableScopedPath
Source§fn clone(&self) -> TableScopedPath
fn clone(&self) -> TableScopedPath
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableScopedPath
impl Debug for TableScopedPath
Source§impl Hash for TableScopedPath
impl Hash for TableScopedPath
Source§impl PartialEq for TableScopedPath
impl PartialEq for TableScopedPath
impl Eq for TableScopedPath
impl StructuralPartialEq for TableScopedPath
Auto Trait Implementations§
impl Freeze for TableScopedPath
impl RefUnwindSafe for TableScopedPath
impl Send for TableScopedPath
impl Sync for TableScopedPath
impl Unpin for TableScopedPath
impl UnwindSafe for TableScopedPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more