[−][src]Struct parquet::schema::types::GroupTypeBuilder
A builder for group types. All attributes are optional except the name.
Note that if not specified explicitly, None
is used as the repetition of the group,
which means it is a root (message) type.
Implementations
impl<'a> GroupTypeBuilder<'a>
[src]
pub fn new(name: &'a str) -> Self
[src]
Creates new group type builder with provided field name.
pub fn with_repetition(self, repetition: Repetition) -> Self
[src]
Sets Repetition
for this field and returns itself.
pub fn with_logical_type(self, logical_type: LogicalType) -> Self
[src]
Sets LogicalType
for this field and returns itself.
pub fn with_fields(self, fields: &mut Vec<TypePtr>) -> Self
[src]
Sets a list of fields that should be child nodes of this field. Returns updated self.
pub fn with_id(self, id: i32) -> Self
[src]
Sets optional field id and returns itself.
pub fn build(self) -> Result<Type>
[src]
Creates a new GroupType
instance from the gathered attributes.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GroupTypeBuilder<'a>
impl<'a> !Send for GroupTypeBuilder<'a>
impl<'a> !Sync for GroupTypeBuilder<'a>
impl<'a> Unpin for GroupTypeBuilder<'a>
impl<'a> !UnwindSafe for GroupTypeBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
fn into_request(self) -> Request<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,