parquet_string_column_get Interface

public interface parquet_string_column_get

Typed form of %get, generic over an int32 or int64 index/count argument.


Module Procedures

private subroutine parquet_string_column_get_i32(self, i, res, null_value, allow_null)

int32 specific of get; see the get generic.

Arguments

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

the column.

integer(kind=int32), intent(in) :: i

1-based element index.

character(len=:), intent(out), allocatable :: res

element i (unallocated if null and allowed).

character(len=*), intent(in), optional :: null_value

substitute returned for a null element.

logical, intent(in), optional :: allow_null

.true. => suppress abort, return empty string for a null.

private subroutine parquet_string_column_get_i64(self, i, res, null_value, allow_null)

int64 specific of get: writes element i into res. A null element error stops by default; pass null_value to substitute a string, or allow_null=.true. to suppress the abort and return an empty string (detect null via is_null). When both are given, null_value takes precedence. A subroutine (not a function) so this never returns character(len=:), allocatable as a function result -- see "Build and compiler notes" in CLAUDE.md for why.

Arguments

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

the column.

integer(kind=int64), intent(in) :: i

1-based element index.

character(len=:), intent(out), allocatable :: res

element i (unallocated if null and allowed).

character(len=*), intent(in), optional :: null_value

substitute returned for a null element.

logical, intent(in), optional :: allow_null

.true. => suppress abort, return empty string for a null.