Struct parquet::schema::types::ColumnPath
source · pub struct ColumnPath { /* private fields */ }
Expand description
Represents a path in a nested schema
Implementations§
source§impl ColumnPath
impl ColumnPath
sourcepub fn string(&self) -> String
pub fn string(&self) -> String
Returns string representation of this column path.
use parquet::schema::types::ColumnPath;
let path = ColumnPath::new(vec!["a".to_string(), "b".to_string(), "c".to_string()]);
assert_eq!(&path.string(), "a.b.c");
sourcepub fn append(&mut self, tail: Vec<String>)
pub fn append(&mut self, tail: Vec<String>)
Appends more components to end of column path.
use parquet::schema::types::ColumnPath;
let mut path = ColumnPath::new(vec!["a".to_string(), "b".to_string(), "c"
.to_string()]);
assert_eq!(&path.string(), "a.b.c");
path.append(vec!["d".to_string(), "e".to_string()]);
assert_eq!(&path.string(), "a.b.c.d.e");
pub fn parts(&self) -> &[String]
Trait Implementations§
source§impl AsRef<[String]> for ColumnPath
impl AsRef<[String]> for ColumnPath
source§impl Clone for ColumnPath
impl Clone for ColumnPath
source§fn clone(&self) -> ColumnPath
fn clone(&self) -> ColumnPath
Returns a copy 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 ColumnPath
impl Debug for ColumnPath
source§impl Display for ColumnPath
impl Display for ColumnPath
source§impl<'a> From<&'a str> for ColumnPath
impl<'a> From<&'a str> for ColumnPath
source§impl From<String> for ColumnPath
impl From<String> for ColumnPath
source§impl Hash for ColumnPath
impl Hash for ColumnPath
source§impl PartialEq for ColumnPath
impl PartialEq for ColumnPath
impl Eq for ColumnPath
impl StructuralPartialEq for ColumnPath
Auto Trait Implementations§
impl Freeze for ColumnPath
impl RefUnwindSafe for ColumnPath
impl Send for ColumnPath
impl Sync for ColumnPath
impl Unpin for ColumnPath
impl UnwindSafe for ColumnPath
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)