Paweł Dziepak
aa25f0844f
atomic_cell: introduce fragmented buffer value interface
...
As a prepratation for the switch to the new cell representation this
patch changes the type returned by atomic_cell_view::value() to one that
requires explicit linearisation of the cell value. Even though the value
is still implicitly linearised (and only when managed by the LSA) the
new interface is the same as the target one so that no more changes to
its users will be needed.
2018-05-31 15:51:11 +01:00
Paweł Dziepak
e9d6fc48ac
treewide: require type for creating atomic_cell
2018-05-31 15:51:11 +01:00
Paweł Dziepak
93130e80fb
atomic_cell: require column_definition for creating atomic_cell views
2018-05-31 15:51:11 +01:00
Paweł Dziepak
e949061126
tests: simple_schema: add make_row_from_serialized_value()
...
simple_schema::make_row() is not very well suited for performance tests
of row and cell creation since it serialises the value. This patch
introduces a new function that performs only minimal actions.
2018-05-09 16:52:26 +01:00
Botond Dénes
783f0f09bf
simple_schema: add global_simple_schema
...
Which allows a simple_schema instance to be transferred to another
shard. In fact a new simple_schema instance will be created on the
remote shard but it will use the same schema instance the the original
one.
2018-04-30 17:17:44 +03:00
Botond Dénes
ed7bde99bc
simple_schema.hh: remove unused include
2018-04-30 17:17:44 +03:00
Tomasz Grabiec
3a974d1776
tests: simple_schema: Allow creating schema with no static column
2018-03-22 14:44:54 +01:00
Botond Dénes
c53b6f75c8
Add unit tests for querier_cache
2018-03-13 12:59:45 +02:00
Piotr Jastrzebski
96c97ad1db
Rename streamed_mutation* files to mutation_fragment*
...
Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com >
2018-01-24 20:56:49 +01:00
José Guilherme Vanz
380bc0aa0d
Swap arguments order of mutation constructor
...
Swap arguments in the mutation constructor keeping the same standard
from the constructor variants. Refs #3084
Signed-off-by: José Guilherme Vanz <guilherme.sft@gmail.com >
Message-Id: <20180120000154.3823-1-guilherme.sft@gmail.com >
2018-01-21 12:58:42 +02:00
Raphael S. Carvalho
2b0b703615
tests: sstable_mutation_test: fix sstable write in tests due to use of non-local keys
...
that's required after fa5a26f12d on because sstable write fails when sharding
metadata is empty due to lack of keys that belong to current shard.
make_local_key* were moved to header to avoid compiling sstable_utils.cc into
all those tests that rely on simple_schema.hh, which is a lot.
Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com >
Message-Id: <20180116052052.7819-1-raphaelsc@scylladb.com >
2018-01-16 09:28:12 +02:00
Paweł Dziepak
8fc9d250c5
tests/simple_schema: add to_ring_positions() helper
...
Based on mutation_reader_test.cc:to_ring_position()
2017-11-13 16:49:52 +00:00
Avi Kivity
d6cd44a725
Revert "Merge 'Single key sstable reader optimization' from Botond"
...
This reverts commit 5e9cd128ad , reversing
changes made to 1f4e6759a7 . Tomek found
some serious issues.
2017-10-19 12:47:21 +03:00
Botond Dénes
c3bd89ad63
Add unit tests for single_key_sstable_reader
2017-10-18 17:24:03 +03:00
Tomasz Grabiec
dd7af02251
tests: Add simple_schema::make_ckey_range()
2017-09-25 11:21:58 +02:00
Tomasz Grabiec
204ec9c673
tests: simple_schema: Add new_tombstone() helper
2017-09-13 17:47:03 +02:00
Botond Dénes
9ee9988097
Add combined_mutation_reader_test unit test
2017-08-10 12:38:10 +03:00
Tomasz Grabiec
2d2e7ef6fb
tests: simple_schema: Add getter for DDL statement
2017-07-27 17:19:07 +02:00
Tomasz Grabiec
5c9f87fb27
tests: simple_schema: Allow passing the tombstone to make_range_tombstone()
2017-06-24 18:06:11 +02:00
Tomasz Grabiec
edf4a3494c
tests: simple_schema: Accept value by reference
2017-06-24 18:06:11 +02:00
Tomasz Grabiec
5f70df472f
tests: simple_schema: Make add_row() accept optional timestamp
2017-06-24 18:06:11 +02:00
Tomasz Grabiec
53867c4328
tests: simple_schema: Make new_timestamp() public
2017-06-24 18:06:11 +02:00
Tomasz Grabiec
51b5814ec2
tests: simple_schema: Introduce make_ckeys()
2017-06-24 18:06:11 +02:00
Tomasz Grabiec
074c67fe4d
tests: simple_schema: Introduce get_value(const clustered_row&) helper
2017-06-24 18:06:11 +02:00
Tomasz Grabiec
8ffc776e06
tests: simple_schema: Fix comment
2017-06-24 18:06:11 +02:00
Tomasz Grabiec
ecacd2e84a
tests: simple_schema: Add missing include
2017-06-24 18:06:11 +02:00
Tomasz Grabiec
f1aca6d116
tests: sstable: Add test for fast forwarding within partition using index
2017-03-28 18:34:55 +02:00
Tomasz Grabiec
5fe14735e8
tests: dht: Test ring_position_comparator
2017-03-28 18:10:39 +02:00
Tomasz Grabiec
929842ad3f
tests: simple_schema: Add fragment factories
2017-03-10 14:42:22 +01:00
Tomasz Grabiec
d98f013b07
tests: Extract simple_schema
2017-03-10 14:42:22 +01:00