Commit Graph

2196 Commits

Author SHA1 Message Date
Pekka Enberg
07e73bdb26 cql3/Cql.g: Implement convert_property_map() helper
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
2015-03-12 10:29:51 +02:00
Pekka Enberg
bcb6c1b9c3 service: Convert MigrationManager to C++
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
2015-03-12 10:29:51 +02:00
Pekka Enberg
5bdf0e4429 service: Import MigrationManager.java
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
2015-03-12 10:29:51 +02:00
Pekka Enberg
2bff7888b6 unimplemented: Add MIGRATIONS
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
2015-03-12 10:29:51 +02:00
Pekka Enberg
6f15c18f0a cql3: Convert KSPropDefs to C++, take #2
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
2015-03-12 10:29:51 +02:00
Pekka Enberg
57e6c63b7a cql3: Convert statements.PropertyDefinitions to C++, take 3
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
2015-03-12 10:29:51 +02:00
Pekka Enberg
75a3595691 config: Convert KSMetaData to C++
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
2015-03-12 10:29:51 +02:00
Pekka Enberg
a5aefb5ef2 config: Import KSMetaData.java
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
2015-03-12 10:19:19 +02:00
Pekka Enberg
df5fe24ed7 config: Convert UTMetaData to C++
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
2015-03-12 10:19:19 +02:00
Pekka Enberg
a372a9170b config: Import UTMetaData.java
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
2015-03-12 10:19:19 +02:00
Avi Kivity
77196afb95 Merge branch 'master' of github.com:cloudius-systems/seastar into db 2015-03-11 19:32:52 +02:00
Avi Kivity
3a35fe061b tests: tighten when_all() compare
Fails on one compiler.
2015-03-11 19:31:55 +02:00
Avi Kivity
5b6e23ebde tests: reduce BOOST_REQUIRE() calls
when_all() tests generate two million calls to BOOST_REQUIRE(), which
overwhelms the test result parser.  Replace with two calls and use all_of()
to process the result array.
2015-03-11 19:25:54 +02:00
Avi Kivity
45cffd5681 core: add seastar API
One file, seastar.hh, containing all the main entry points as free functions.
Most classes are forward-declared to avoid the need to #include the entire
world.
2015-03-11 19:11:01 +02:00
Avi Kivity
b3dd714e00 Merge branch 'tgrabiec/select' of github.com:cloudius-systems/seastar-dev into db
Cql select support, from Tomasz.
2015-03-11 19:02:08 +02:00
Avi Kivity
d0705e6e82 Merge branch 'master' of github.com:cloudius-systems/seastar into db
Conflicts:
	configure.py
2015-03-11 19:01:37 +02:00
Gleb Natapov
0838a0ce2f core: drop future<> casting to rvalue before call to then_wrapped()
No longer required.
2015-03-11 17:19:23 +02:00
Shlomi Livne
a10c6681e3 build: fix jenkins/boost test integration
Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
2015-03-11 17:07:53 +02:00
Avi Kivity
e659ca2629 Merge branch 'when_all' of github.com:cloudius-systems/seastar-dev
when_all() variant for runtime-sized lists of futures.
2015-03-11 17:06:23 +02:00
Tomasz Grabiec
053f9e6d05 tests: Add tests for parsing and execution of CQL select statement 2015-03-11 16:01:14 +01:00
Tomasz Grabiec
40d3e6c349 Cql.g: Convert rules for select statement 2015-03-11 16:01:14 +01:00
Tomasz Grabiec
09f0c5bb6d Cql.g: Fix result of unaliasedSelector rule not being set 2015-03-11 16:01:14 +01:00
Tomasz Grabiec
f7aa2a58bd cql3: Convert SelectStatement and SelectStatement.RawStatement 2015-03-11 16:01:13 +01:00
Tomasz Grabiec
2f6d9a4113 db: Introduce query interface 2015-03-11 16:01:13 +01:00
Tomasz Grabiec
acda112314 db: Register system keyspace
This also changes populate() interface a bit. They now work on
existing objects, so that system keyspace definition is not
overriden. For non-system keyspace, the keyspace definition would come
from the data in the system tables.
2015-03-11 16:01:13 +01:00
Tomasz Grabiec
e6ad9df1c9 db: Add db::system_keyspace::make() for creating the system keyspace 2015-03-11 16:01:13 +01:00
Tomasz Grabiec
fc00cf4f0f db: Do not fail when creating a table with composite partition key 2015-03-11 16:01:13 +01:00
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
76c3509501 transport: Handle result_message::rows in CQL3 server 2015-03-11 16:01:13 +01:00
Tomasz Grabiec
4681af1b5a transport: Add result_message::rows 2015-03-11 16:01:13 +01:00
Tomasz Grabiec
03c70bb71f service: Stub paging_state::serialize() 2015-03-11 16:01:13 +01:00
Tomasz Grabiec
5458d7bf7f cql3: Convert StatementRestrictions 2015-03-11 16:01:10 +01:00
Tomasz Grabiec
e202a13fff cql3: Convert SingleColumnPrimaryKeyRestrictions 2015-03-11 14:56:11 +01:00
Tomasz Grabiec
f2b9bbe74a cql3: Convert ReversePrimaryKeyRestrictions 2015-03-11 14:56:11 +01:00
Tomasz Grabiec
ff8adf93a2 cql3: Convert ForwardingPrimaryKeyRestrictions 2015-03-11 14:56:11 +01:00
Tomasz Grabiec
b49dc80eb5 cql3: Convert SingleColumnRestrictions 2015-03-11 14:56:11 +01:00
Tomasz Grabiec
25db056a8b cql3: Convert SingleColumnRestriction.Contains 2015-03-11 14:56:10 +01:00
Tomasz Grabiec
3e1c3a6b09 cql3: Convert Restrictions and PrimaryKeyRestrictions 2015-03-11 14:56:10 +01:00
Tomasz Grabiec
2946bff496 cql3: Remove AbstractPrimaryKeyRestrictions.java
It will not be used in converted code.
2015-03-11 14:56:10 +01:00
Tomasz Grabiec
3556ee9d45 cql3: Expose restricion::merge_with() 2015-03-11 14:56:10 +01:00
Tomasz Grabiec
a80a9a7253 cql3: Add restriction::to_string() 2015-03-11 14:56:10 +01:00
Tomasz Grabiec
bbe32bf26b cql3: Take vector by const& in abstract_restricion::uses_function() 2015-03-11 14:56:10 +01:00
Tomasz Grabiec
71756de650 cql3: single_column_restriction: keep column_definition& as const 2015-03-11 14:56:10 +01:00
Tomasz Grabiec
8912417dd0 cql3: Convert classes from org.cassandra.cql3.selection package 2015-03-11 14:56:10 +01:00
Tomasz Grabiec
335f69070a cql3: Convert ResultSet and Metadata 2015-03-11 14:56:10 +01:00
Tomasz Grabiec
7596a735f2 cql3: Add term::to_string()
There is some code which tries to print a term. Some terms are
printable, but not all of them. Those who don't override to_string()
will get the default implementation.
2015-03-11 14:56:10 +01:00
Tomasz Grabiec
137a192779 cql3: Add missing include to abstract_restriction.hh 2015-03-11 14:56:10 +01:00
Tomasz Grabiec
f7c425fdd9 cql3: Introduce column_identifier::name() 2015-03-11 14:56:10 +01:00
Tomasz Grabiec
fe12ad6ae1 cql3: Move argument in column_identifier constructor 2015-03-11 14:56:10 +01:00
Tomasz Grabiec
243d1959c9 cql3: Support for moving data from variable_specifications 2015-03-11 14:56:10 +01:00