/* */ /* * Copyright (C) 2015-present ScyllaDB * * Modified by ScyllaDB */ /* * SPDX-License-Identifier: (AGPL-3.0-or-later and Apache-2.0) */ #pragma once #include #include #include "seastarx.hh" #include "bytes.hh" #include namespace cql3 { class column_identifier; class ut_name final { std::optional _ks_name; ::shared_ptr _ut_name; public: ut_name(shared_ptr ks_name, ::shared_ptr ut_name); bool has_keyspace() const; void set_keyspace(sstring keyspace); const sstring& get_keyspace() const; bytes get_user_type_name() const; sstring get_string_type_name() const; sstring to_string() const; friend std::ostream& operator<<(std::ostream& os, const ut_name& n) { return os << n.to_string(); } }; }