pub enum ParquetSourceLocation {
LocalPath(PathBuf),
ObjectStoreUri {
scheme: String,
uri: String,
},
}Expand description
Explicit location/read-capability model for native Parquet sources.
Variants§
LocalPath(PathBuf)
Local filesystem path readable by cuDF local Parquet readers.
ObjectStoreUri
Object-store URI plus parsed scheme.
Implementations§
Source§impl ParquetSourceLocation
impl ParquetSourceLocation
Sourcepub fn local_path(path: impl Into<PathBuf>) -> Self
pub fn local_path(path: impl Into<PathBuf>) -> Self
Build a local filesystem source location.
Sourcepub fn object_store_uri(uri: impl Into<String>) -> Result<Self, String>
pub fn object_store_uri(uri: impl Into<String>) -> Result<Self, String>
Build a supported object-store URI location.
Currently only s3://... is accepted. Errors are stable reason strings
such as missing_uri_scheme or unsupported_uri_scheme:<scheme>.
Sourcepub fn reader_path(&self) -> String
pub fn reader_path(&self) -> String
Path or URI string passed to lower-level readers.
Sourcepub fn read_capability(&self) -> String
pub fn read_capability(&self) -> String
Stable read-capability diagnostic string.
Sourcepub fn is_local_path(&self) -> bool
pub fn is_local_path(&self) -> bool
Whether this location is a local filesystem path.
Sourcepub fn as_local_path(&self) -> Option<&Path>
pub fn as_local_path(&self) -> Option<&Path>
Borrow the local path when this location is local.
Sourcepub fn diagnostic_location(&self) -> String
pub fn diagnostic_location(&self) -> String
Redacted diagnostic location. Local paths are preserved; object-store URIs are represented by scheme plus stable hash only.
Trait Implementations§
Source§impl Clone for ParquetSourceLocation
impl Clone for ParquetSourceLocation
Source§impl Debug for ParquetSourceLocation
impl Debug for ParquetSourceLocation
Source§impl Display for ParquetSourceLocation
impl Display for ParquetSourceLocation
impl Eq for ParquetSourceLocation
Source§impl Hash for ParquetSourceLocation
impl Hash for ParquetSourceLocation
Source§impl PartialEq for ParquetSourceLocation
impl PartialEq for ParquetSourceLocation
impl StructuralPartialEq for ParquetSourceLocation
Auto Trait Implementations§
impl Freeze for ParquetSourceLocation
impl RefUnwindSafe for ParquetSourceLocation
impl Send for ParquetSourceLocation
impl Sync for ParquetSourceLocation
impl Unpin for ParquetSourceLocation
impl UnsafeUnpin for ParquetSourceLocation
impl UnwindSafe for ParquetSourceLocation
Blanket Implementations§
impl<T> Allocation for T
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