parquet_string_column_clear Subroutine

public subroutine parquet_string_column_clear(self)

Resets the column to an empty state and releases all owned memory (capacity becomes 0). Invalidates every outstanding handle into this column.

Arguments

Type IntentOptional Attributes Name
type(parquet_string_column), intent(inout) :: self

the column.


Source Code

    subroutine parquet_string_column_clear(self)
        type(parquet_string_column), intent(inout) :: self !! the column.
        if (allocated(self%offsets)) deallocate(self%offsets)
        if (allocated(self%data)) deallocate(self%data)
        if (allocated(self%validity)) deallocate(self%validity)
        self%nrows = 0
        self%nchars = 0
        self%n_null = 0
        self%has_nulls = .false.
    end subroutine parquet_string_column_clear