OpenMS
Loading...
Searching...
No Matches
XIPMParquetConsumer.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Justin Sing $
6// $Authors: Justin Sing $
7// --------------------------------------------------------------------------
8
9#pragma once
10
14
15#include <memory>
16#include <string>
17
18namespace OpenMS
19{
20 class XIPMParquetConsumerImpl;
21
82 class OPENMS_DLLAPI XIPMParquetConsumer
83 {
84 public:
91 XIPMParquetConsumer(const std::string& filename,
92 const OpenSwath::LightTargetedExperiment& transition_exp);
93
96
106 UInt64 run_id,
107 const std::string& source_file,
108 Int64 ms_level);
109
111 void finalize();
112
118 void setExpectedSize(Size expectedPeakMaps);
119
120 private:
121 std::unique_ptr<XIPMParquetConsumerImpl> impl_;
122 };
123} // namespace OpenMS
One extracted targeted peak map.
Definition PeakMapExtractor.h:46
Writes targeted mz/RT/IM peak maps to a Parquet file (.xipm).
Definition XIPMParquetConsumer.h:83
XIPMParquetConsumer(const std::string &filename, const OpenSwath::LightTargetedExperiment &transition_exp)
Construct a parquet writer for targeted peak-map export.
std::unique_ptr< XIPMParquetConsumerImpl > impl_
Definition XIPMParquetConsumer.h:121
void finalize()
Finalize and write the parquet file.
void consumePeakMap(const PeakMapExtractor::ExtractedPeakMap &peak_map, UInt64 run_id, const std::string &source_file, Int64 ms_level)
Consume one targeted peak map.
~XIPMParquetConsumer()
Destructor flushes pending rows and closes the parquet writer.
void setExpectedSize(Size expectedPeakMaps)
Reserve storage for the expected number of peak maps.
int64_t Int64
Signed integer type (64bit)
Definition Types.h:40
uint64_t UInt64
Unsigned integer type (64bit)
Definition Types.h:47
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition TransitionExperiment.h:369