OpenMS
Loading...
Searching...
No Matches
ParquetColumn Struct Reference

One column for withColumns(), built without Arrow types. More...

#include <OpenMS/FORMAT/ArrowIOHelpers.h>

Classes

struct  Score
 An entry of a SCORE_LIST row: the struct of the QPX additional_scores (QPXPSMSchema::additionalScoresType()) More...
 
struct  StructField
 
struct  StructValue
 

Public Types

enum class  Type {
  INT16 , INT64 , UTF8 , FLOAT_LIST ,
  UTF8_LIST , SCORE_LIST , INT32 , BOOL ,
  DOUBLE , STRUCT_LIST , FLOAT , INT32_LIST
}
 
using StructEntry = std::vector< StructValue >
 An entry of a STRUCT_LIST: one value per field.
 

Public Attributes

std::string name
 
Type type = Type::INT64
 
bool nullable = true
 false: the field is non-null (a null row is then an error)
 
std::vector< Int64 > int64_values
 INT16 and INT32 (narrowed, range-checked), INT64, BOOL (0: false)
 
std::vector< double > double_values
 DOUBLE, FLOAT (narrowed)
 
std::vector< std::string > utf8_values
 UTF8.
 
std::vector< std::vector< float > > float_lists
 FLOAT_LIST.
 
std::vector< std::vector< Int32 > > int32_lists
 INT32_LIST.
 
std::vector< std::vector< std::string > > utf8_lists
 UTF8_LIST.
 
std::vector< std::vector< Score > > score_lists
 SCORE_LIST.
 
std::vector< StructField > struct_fields
 STRUCT_LIST: the fields of its struct.
 
std::vector< std::vector< StructEntry > > struct_lists
 STRUCT_LIST: per row its entries.
 
std::vector< bool > null_rows
 true marks a null row (empty: no null row)
 

Detailed Description

One column for withColumns(), built without Arrow types.

Only the vector of the column's type is used; it holds one entry per row. Any column can have null rows.


Class Documentation

◆ OpenMS::ArrowIOHelpers::ParquetColumn::Score

struct OpenMS::ArrowIOHelpers::ParquetColumn::Score

An entry of a SCORE_LIST row: the struct of the QPX additional_scores (QPXPSMSchema::additionalScoresType())

Class Members
optional< bool > higher_better none: unknown (null)
string name
double value = 0.0

Member Typedef Documentation

◆ StructEntry

using StructEntry = std::vector<StructValue>

An entry of a STRUCT_LIST: one value per field.

Member Enumeration Documentation

◆ Type

enum class Type
strong

int16, int32, int64, bool, float32, float64, utf8, list<float32>, list<int32>, list<utf8>, the list of QPX additional_scores structs, or a list of structs of the fields struct_fields

Enumerator
INT16 
INT64 
UTF8 
FLOAT_LIST 
UTF8_LIST 
SCORE_LIST 
INT32 
BOOL 
DOUBLE 
STRUCT_LIST 
FLOAT 
INT32_LIST 

Member Data Documentation

◆ double_values

std::vector<double> double_values

DOUBLE, FLOAT (narrowed)

◆ float_lists

std::vector<std::vector<float> > float_lists

FLOAT_LIST.

◆ int32_lists

std::vector<std::vector<Int32> > int32_lists

INT32_LIST.

◆ int64_values

std::vector<Int64> int64_values

INT16 and INT32 (narrowed, range-checked), INT64, BOOL (0: false)

◆ name

std::string name

◆ null_rows

std::vector<bool> null_rows

true marks a null row (empty: no null row)

◆ nullable

bool nullable = true

false: the field is non-null (a null row is then an error)

◆ score_lists

std::vector<std::vector<Score> > score_lists

SCORE_LIST.

◆ struct_fields

std::vector<StructField> struct_fields

STRUCT_LIST: the fields of its struct.

◆ struct_lists

std::vector<std::vector<StructEntry> > struct_lists

STRUCT_LIST: per row its entries.

◆ type

Type type = Type::INT64

◆ utf8_lists

std::vector<std::vector<std::string> > utf8_lists

UTF8_LIST.

◆ utf8_values

std::vector<std::string> utf8_values

UTF8.