mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-24 10:30:38 +00:00
cql3: add frozen type support to cql3_type
This commit is contained in:
@@ -246,6 +246,12 @@ cql3_type::raw::tuple(std::vector<shared_ptr<raw>> ts) {
|
||||
return make_shared(raw_tuple(std::move(ts)));
|
||||
}
|
||||
|
||||
shared_ptr<cql3_type::raw>
|
||||
cql3_type::raw::frozen(shared_ptr<raw> t) {
|
||||
t->freeze();
|
||||
return t;
|
||||
}
|
||||
|
||||
thread_local shared_ptr<cql3_type> cql3_type::ascii = make("ascii", ascii_type, cql3_type::kind::ASCII);
|
||||
thread_local shared_ptr<cql3_type> cql3_type::bigint = make("bigint", long_type, cql3_type::kind::BIGINT);
|
||||
thread_local shared_ptr<cql3_type> cql3_type::blob = make("blob", bytes_type, cql3_type::kind::BLOB);
|
||||
|
||||
@@ -64,13 +64,7 @@ public:
|
||||
static shared_ptr<raw> list(shared_ptr<raw> t);
|
||||
static shared_ptr<raw> set(shared_ptr<raw> t);
|
||||
static shared_ptr<raw> tuple(std::vector<shared_ptr<raw>> ts);
|
||||
#if 0
|
||||
public static Raw frozen(CQL3Type.Raw t) throws InvalidRequestException
|
||||
{
|
||||
t.freeze();
|
||||
return t;
|
||||
}
|
||||
#endif
|
||||
static shared_ptr<raw> frozen(shared_ptr<raw> t);
|
||||
virtual sstring to_string() const = 0;
|
||||
friend std::ostream& operator<<(std::ostream& os, const raw& r);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user