Apache Ignite C++ Client
Loading...
Searching...
No Matches
column_origin.h
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#pragma once
19
20#include <string>
21
22namespace ignite {
23
27class column_origin {
28public:
29 // Default
30 column_origin() = default;
31
39 column_origin(std::string column_name, std::string table_name, std::string schema_name)
40 : m_column_name(std::move(column_name))
41 , m_table_name(std::move(table_name))
42 , m_schema_name(std::move(schema_name)) {}
43
49 [[nodiscard]] const std::string &column_name() const { return m_column_name; }
50
56 [[nodiscard]] const std::string &table_name() const { return m_table_name; }
57
63 [[nodiscard]] const std::string &schema_name() const { return m_schema_name; }
64
65private:
67 std::string m_column_name;
68
70 std::string m_table_name;
71
73 std::string m_schema_name;
74};
75
76} // namespace ignite
column_origin(std::string column_name, std::string table_name, std::string schema_name)
Definition column_origin.h:39
const std::string & column_name() const
Definition column_origin.h:49
const std::string & schema_name() const
Definition column_origin.h:63
const std::string & table_name() const
Definition column_origin.h:56