chromium/third_party/leveldatabase/src/db/write_batch.cc

// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// WriteBatch::rep_ :=
//    sequence: fixed64
//    count: fixed32
//    data: record[count]
// record :=
//    kTypeValue varstring varstring         |
//    kTypeDeletion varstring
// varstring :=
//    len: varint32
//    data: uint8[len]

#include "leveldb/write_batch.h"

#include "db/dbformat.h"
#include "db/memtable.h"
#include "db/write_batch_internal.h"
#include "leveldb/db.h"
#include "util/coding.h"

namespace leveldb {

// WriteBatch header has an 8-byte sequence number followed by a 4-byte count.
static const size_t kHeader =;

WriteBatch::WriteBatch() {}

WriteBatch::~WriteBatch() = default;

WriteBatch::Handler::~Handler() = default;

void WriteBatch::Clear() {}

size_t WriteBatch::ApproximateSize() const {}

Status WriteBatch::Iterate(Handler* handler) const {}

int WriteBatchInternal::Count(const WriteBatch* b) {}

void WriteBatchInternal::SetCount(WriteBatch* b, int n) {}

SequenceNumber WriteBatchInternal::Sequence(const WriteBatch* b) {}

void WriteBatchInternal::SetSequence(WriteBatch* b, SequenceNumber seq) {}

void WriteBatch::Put(const Slice& key, const Slice& value) {}

void WriteBatch::Delete(const Slice& key) {}

void WriteBatch::Append(const WriteBatch& source) {}

namespace {
class MemTableInserter : public WriteBatch::Handler {};
}  // namespace

Status WriteBatchInternal::InsertInto(const WriteBatch* b, MemTable* memtable) {}

void WriteBatchInternal::SetContents(WriteBatch* b, const Slice& contents) {}

void WriteBatchInternal::Append(WriteBatch* dst, const WriteBatch* src) {}

}  // namespace leveldb