Class MetadataMergeOperator

Inheritance Relationships

Base Type

  • public rocksdb::MergeOperator

Class Documentation

class gkfs::metadata::MetadataMergeOperator : public rocksdb::MergeOperator

Merge operator class passed to RocksDB, used during merge operations.

Public Functions

~MetadataMergeOperator() override = default
bool FullMergeV2(const MergeOperationInput &merge_in, MergeOperationOutput *merge_out) const override

Merges all operands in chronological order for the same key.

Parameters
  • op1 – Input operand

  • op2 – Output operand

Returns

Result of the merge operation

bool PartialMergeMulti(const rdb::Slice &key, const std::deque<rdb::Slice> &operand_list, std::string *new_value, rdb::Logger *logger) const override

TODO functionality unclear. Currently unused.

Parameters
  • key

  • operand_list

  • new_value

  • logger

Returns

const char *Name() const override

Returns the name of this Merge operator.

Returns

bool AllowSingleOperand() const override

Merge Operator configuration which allows merges with just a single operand.

Returns