cql3: expose Operation.execute() interface

This commit is contained in:
Tomasz Grabiec
2015-01-25 17:59:31 +01:00
parent d8982abf81
commit ab1bdf1b82

View File

@@ -27,6 +27,8 @@
#include "core/shared_ptr.hh"
#include "db/api.hh"
#include <experimental/optional>
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.
*