OpenMS
Loading...
Searching...
No Matches
OpenSwathOSWWriter::OSWData Struct Reference

Buffered OSW table rows ready for insertion through prepared statements. More...

#include <OpenMS/ANALYSIS/OPENSWATH/OpenSwathOSWWriter.h>

Collaboration diagram for OpenSwathOSWWriter::OSWData:
[legend]

Public Member Functions

void reserve (Size row_count)
 Reserve storage for roughly row_count rows per OSW table.
 
void reserve (Size feature_row_count, Size transition_row_count)
 Reserve storage for expected feature-level and transition-level rows.
 
void append (OSWData &&rhs)
 Append rows from rhs, moving row storage where possible.
 
bool empty () const
 Returns true if no rows were buffered.
 
Size rowCount () const
 Returns the total number of buffered rows across all OSW tables.
 
UInt64 estimateMemoryUsage () const
 Estimate the memory retained by this buffer in bytes.
 

Public Attributes

std::vector< FeatureRowfeature_rows
 
std::vector< FeatureMS1Rowfeature_ms1_rows
 
std::vector< FeatureMS2Rowfeature_ms2_rows
 
std::vector< FeaturePrecursorRowfeature_precursor_rows
 
std::vector< FeatureTransitionRowfeature_transition_rows
 

Detailed Description

Buffered OSW table rows ready for insertion through prepared statements.

Member Function Documentation

◆ append()

void append ( OSWData &&  rhs)

Append rows from rhs, moving row storage where possible.

◆ empty()

bool empty ( ) const

Returns true if no rows were buffered.

◆ estimateMemoryUsage()

UInt64 estimateMemoryUsage ( ) const

Estimate the memory retained by this buffer in bytes.

◆ reserve() [1/2]

void reserve ( Size  feature_row_count,
Size  transition_row_count 
)

Reserve storage for expected feature-level and transition-level rows.

◆ reserve() [2/2]

void reserve ( Size  row_count)

Reserve storage for roughly row_count rows per OSW table.

◆ rowCount()

Size rowCount ( ) const

Returns the total number of buffered rows across all OSW tables.

Member Data Documentation

◆ feature_ms1_rows

std::vector<FeatureMS1Row> feature_ms1_rows

◆ feature_ms2_rows

std::vector<FeatureMS2Row> feature_ms2_rows

◆ feature_precursor_rows

std::vector<FeaturePrecursorRow> feature_precursor_rows

◆ feature_rows

std::vector<FeatureRow> feature_rows

◆ feature_transition_rows

std::vector<FeatureTransitionRow> feature_transition_rows