[][src]Struct parquet::schema::types::GroupTypeBuilder

pub struct GroupTypeBuilder<'a> { /* fields omitted */ }

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]