From ab1bdf1b82aef0ebdcec20a0bd7971737c6ca09f Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Sun, 25 Jan 2015 17:59:31 +0100 Subject: [PATCH] cql3: expose Operation.execute() interface --- cql3/operation.hh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cql3/operation.hh b/cql3/operation.hh index df57f39662..486683ff06 100644 --- a/cql3/operation.hh +++ b/cql3/operation.hh @@ -27,6 +27,8 @@ #include "core/shared_ptr.hh" +#include "db/api.hh" + #include namespace cql3 { @@ -97,17 +99,14 @@ public: if (t != null) t.collectMarkerSpecification(boundNames); } +#endif /** * Execute the operation. - * - * @param rowKey row key for the update. - * @param cf the column family to which to add the updates generated by this operation. - * @param prefix the prefix that identify the CQL3 row this operation applies to. - * @param params parameters of the update. */ - public abstract void execute(ByteBuffer rowKey, ColumnFamily cf, Composite prefix, UpdateParameters params) throws InvalidRequestException; + virtual void execute(api::mutation& m, const api::clustering_prefix& row_key, const update_parameters& params) = 0; +#if 0 /** * A parsed raw UPDATE operation. *