Stop including types/set.hh into cql3/sets.hh

Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com>
This commit is contained in:
Piotr Jastrzebski
2019-01-18 11:39:39 +01:00
parent 5a5201a50b
commit fe8dfc8fdc
6 changed files with 11 additions and 5 deletions

View File

@@ -29,6 +29,7 @@
#include "database.hh"
#include "user_types_metadata.hh"
#include "types/map.hh"
#include "types/set.hh"
namespace cql3 {

View File

@@ -29,6 +29,7 @@
#include "cql3/constants.hh"
#include "database.hh"
#include "types/map.hh"
#include "types/set.hh"
#include "types/list.hh"
namespace cql3 {

View File

@@ -46,6 +46,7 @@
#include "types/tuple.hh"
#include "types/map.hh"
#include "types/list.hh"
#include "types/set.hh"
namespace cql3 {

View File

@@ -23,6 +23,7 @@
#include "constants.hh"
#include "cql3_type.hh"
#include "types/map.hh"
#include "types/set.hh"
namespace cql3 {
@@ -213,6 +214,11 @@ sets::delayed_value::bind(const query_options& options) {
}
sets::marker::marker(int32_t bind_index, ::shared_ptr<column_specification> receiver)
: abstract_marker{bind_index, std::move(receiver)} {
assert(dynamic_cast<const set_type_impl*>(_receiver->type.get()));
}
::shared_ptr<terminal>
sets::marker::bind(const query_options& options) {
const auto& value = options.get_value_at(_bind_index);

View File

@@ -47,7 +47,6 @@
#include "column_identifier.hh"
#include "to_string.hh"
#include <unordered_set>
#include "types/set.hh"
namespace cql3 {
@@ -101,10 +100,7 @@ public:
class marker : public abstract_marker {
public:
marker(int32_t bind_index, ::shared_ptr<column_specification> receiver)
: abstract_marker{bind_index, std::move(receiver)} {
assert(dynamic_cast<const set_type_impl*>(_receiver->type.get()));
}
marker(int32_t bind_index, ::shared_ptr<column_specification> receiver);
virtual ::shared_ptr<terminal> bind(const query_options& options) override;
};

View File

@@ -48,6 +48,7 @@
#include "cql3/operation_impl.hh"
#include "json.hh"
#include "types/map.hh"
#include "types/set.hh"
#include "types/list.hh"
namespace cql3 {