Struct parquet::schema::types::ColumnPath
source · pub struct ColumnPath { /* private fields */ }
Expand description
Represents the location of a column in a Parquet schema
§Example: refer to column named 'my_column'
let column_path = ColumnPath::from("my_column");
§Example: refer to column named c
in a nested struct {a: {b: {c: ...}}}
// form path 'a.b.c'
let column_path = ColumnPath::from(vec![
String::from("a"),
String::from("b"),
String::from("c")
]);
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");
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 From<&str> for ColumnPath
impl From<&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
)