Program Listing for File deserializers.hpp

(Latest Version)

Return to documentation for file (morpheus/_lib/include/morpheus/io/deserializers.hpp)


/* * SPDX-FileCopyrightText: Copyright (c) 2022-2024, 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 * * * * 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/export.h" #include "morpheus/objects/file_types.hpp" // for FileTypes #include <cudf/io/types.hpp> #include <pybind11/pytypes.h> // for pybind11::object #include <optional> #include <string> #include <vector> namespace morpheus { std::vector<std::string> MORPHEUS_EXPORT get_column_names_from_table(const cudf::io::table_with_metadata& table); cudf::io::table_with_metadata MORPHEUS_EXPORT load_table_from_file(const std::string& filename, FileTypes file_type = FileTypes::Auto, std::optional<bool> json_lines = std::nullopt); int MORPHEUS_EXPORT get_index_col_count(const cudf::io::table_with_metadata& data_table); int MORPHEUS_EXPORT prepare_df_index(cudf::io::table_with_metadata& data_table); pybind11::object MORPHEUS_EXPORT read_file_to_df(const std::string& filename, FileTypes file_type = FileTypes::Auto); // end of group } // namespace morpheus

© Copyright 2024, NVIDIA. Last updated on Jul 8, 2024.