db: Convert db/DeletedCell.java to C++
This commit is contained in:
1
db/db.cc
1
db/db.cc
@@ -15,6 +15,7 @@
|
||||
#include "composites/cell_name_type.hh"
|
||||
#include "cell.hh"
|
||||
#include "counter_update_cell.hh"
|
||||
#include "deleted_cell.hh"
|
||||
|
||||
const db::composites::composite::EOC db::composites::composite::EOC::START{-1};
|
||||
const db::composites::composite::EOC db::composites::composite::EOC::NONE{-1};
|
||||
|
||||
@@ -15,16 +15,23 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.cassandra.db;
|
||||
|
||||
import org.apache.cassandra.config.CFMetaData;
|
||||
import org.apache.cassandra.utils.concurrent.OpOrder;
|
||||
import org.apache.cassandra.utils.memory.AbstractAllocator;
|
||||
import org.apache.cassandra.utils.memory.MemtableAllocator;
|
||||
/*
|
||||
* Modified by Cloudius Systems
|
||||
* Copyright 2015 Cloudius Systems
|
||||
*/
|
||||
|
||||
public interface DeletedCell extends Cell
|
||||
{
|
||||
DeletedCell localCopy(CFMetaData metadata, AbstractAllocator allocator);
|
||||
#pragma once
|
||||
|
||||
#include "cell.hh"
|
||||
|
||||
namespace db {
|
||||
|
||||
class deleted_cell : public cell {
|
||||
public:
|
||||
// Note: The origin returns deleted_cell instead cell
|
||||
virtual std::shared_ptr<cell> local_copy(CFMetaData metadata, AbstractAllocator allocator) = 0;
|
||||
virtual std::shared_ptr<cell> local_copy(CFMetaData metaData, MemtableAllocator allocator, OpOrder::Group op_group) = 0;
|
||||
};
|
||||
|
||||
DeletedCell localCopy(CFMetaData metaData, MemtableAllocator allocator, OpOrder.Group opGroup);
|
||||
}
|
||||
Reference in New Issue
Block a user