OpenMS
Loading...
Searching...
No Matches
ArrowIOHelpers.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: Timo Sachsenberg $
6// $Authors: Timo Sachsenberg $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/config.h>
13#include <OpenMS/FORMAT/MSExperimentArrowExport.h> // for ParquetWriteConfig
14
15#include <memory>
16#include <vector>
17
18// Forward declarations
19namespace arrow
20{
21 class Table;
22}
23
24namespace OpenMS
25{
26
36namespace ArrowIOHelpers
37{
45 OPENMS_DLLAPI String generateUuidV4();
46
55 OPENMS_DLLAPI bool writeTableToParquet(
56 const std::shared_ptr<arrow::Table>& table,
57 const String& filename,
58 const ParquetWriteConfig& config = ParquetWriteConfig{});
59
71 OPENMS_DLLAPI bool concatenateAndWriteToParquet(
72 const std::vector<std::shared_ptr<arrow::Table>>& tables,
73 const String& filename,
74 const ParquetWriteConfig& config = ParquetWriteConfig{});
75}
76
77} // namespace OpenMS
A more convenient string class.
Definition String.h:32
bool writeTableToParquet(const std::shared_ptr< arrow::Table > &table, const String &filename, const ParquetWriteConfig &config=ParquetWriteConfig{})
Write an Arrow table to a Parquet file.
String generateUuidV4()
Generate a lowercase hyphenated RFC 4122 version-4 UUID string.
bool concatenateAndWriteToParquet(const std::vector< std::shared_ptr< arrow::Table > > &tables, const String &filename, const ParquetWriteConfig &config=ParquetWriteConfig{})
Concatenate a vector of Arrow tables and write the result to a Parquet file.
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition ArrowIOHelpers.h:20
Configuration for Parquet file writing.
Definition MSExperimentArrowExport.h:136