Tomasz Grabiec
b9d6cbeb3b
types: Introduce tuple_type::is_full()
...
For checking if prefix is in fact a full tuple.
2015-03-11 16:01:13 +01:00
Tomasz Grabiec
4c7480ce3b
cql3: Introduce to_identifier(column_definition&)
2015-03-11 14:56:09 +01:00
Tomasz Grabiec
124ec33a4a
types: Fix tuple_type::compare() for missing values
2015-03-10 10:16:55 +02:00
Tomasz Grabiec
e8d22e5598
tuple: Fix component iterator
...
The iterator prematurely compared equal with end().
2015-02-18 21:59:35 +02:00
Tomasz Grabiec
ad3ffd2e96
tuple: Remove internal deserialize_value() usages
...
deserialize_value() is slow because it involves multiple allocations
and copies. Internal operations such as compare() or hash() don't need
all that heavy transformations, now that those functions work on
bytes_view we can iterate over component values in-place.
2015-02-17 12:43:15 +02:00
Tomasz Grabiec
700799e965
types: Make deserialize() work on bytes_view
2015-02-17 12:43:15 +02:00
Tomasz Grabiec
54b9c637bd
tuple: Convert is_prefix_of() to work on bytes_view
2015-02-17 12:43:15 +02:00
Tomasz Grabiec
6cde02cbc7
types: Make equal/hash/less work on bytes_view
...
The serialized value is not always a standalone "bytes" object, it can
be embedded in a larger chunk. It's much faster to work on the data
in-place.
2015-02-17 12:43:15 +02:00
Tomasz Grabiec
8721b2e900
tuple: Add missing copyright banner
2015-02-17 12:43:15 +02:00
Tomasz Grabiec
ebb8a11206
types: Add helper tuple_type::serialize_value_deep()
...
It works on fully deserialized values.
2015-02-12 19:40:59 +01:00
Tomasz Grabiec
63d152ece8
types: Introduce abstract_type::as_cql3_type()
...
Origin also has it.
2015-02-12 19:40:58 +01:00
Tomasz Grabiec
863d305a66
types: Make from_string() work on sstring_view
2015-02-12 19:40:58 +01:00
Tomasz Grabiec
138ed6faac
tests: Add test for tuple_type::is_prefix_of()
2015-02-09 10:28:45 +01:00
Tomasz Grabiec
0a5bf555ea
types: Introduce tuple_type::is_prefix_of()
2015-02-09 10:28:45 +01:00
Tomasz Grabiec
f1c9f64a25
types: Implement string conversions for int32_type and string_type
2015-02-09 10:28:44 +01:00
Tomasz Grabiec
92c95c6c81
types: Add tuple_type::decompose_value() shorthand method
2015-02-09 10:28:44 +01:00
Tomasz Grabiec
ed0500e1cd
tuple: Remove dead code
2015-02-04 10:28:51 +01:00
Tomasz Grabiec
bf60d82dd0
types: Introduce tuple_type
2015-01-29 15:02:27 +01:00