Program Listing for File deserializers.hpp
↰ Return to documentation for file (morpheus/_lib/include/morpheus/io/deserializers.hpp
)
/*
* SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include "morpheus/objects/file_types.hpp" // for FileTypes
#include <cudf/io/json.hpp>
#include <cudf/io/types.hpp>
#include <pybind11/pytypes.h> // for pybind11::object
#include <string>
#include <vector>
namespace morpheus {
#pragma GCC visibility push(default)
std::vector<std::string> get_column_names_from_table(const cudf::io::table_with_metadata& table);
cudf::io::table_with_metadata load_table_from_file(const std::string& filename, FileTypes file_type = FileTypes::Auto);
cudf::io::table_with_metadata load_json_table(cudf::io::json_reader_options&& json_options);
int get_index_col_count(const cudf::io::table_with_metadata& data_table);
int prepare_df_index(cudf::io::table_with_metadata& data_table);
pybind11::object read_file_to_df(const std::string& filename, FileTypes file_type = FileTypes::Auto);
#pragma GCC visibility pop// end of group
} // namespace morpheus