aboutsummaryrefslogtreecommitdiff
path: root/db/builder.h
diff options
context:
space:
mode:
authorVinnie Falco <vinnie.falco@gmail.com>2013-05-03 19:06:59 -0700
committerVinnie Falco <vinnie.falco@gmail.com>2013-05-03 19:06:59 -0700
commitc25e98186d0f716451ef000e55646d25e014f573 (patch)
treeaaf23800da380d055ecf533422905018eb8b6fe2 /db/builder.h
Squashed 'src/leveldb/' content from commit aca1ffc
git-subtree-dir: src/leveldb git-subtree-split: aca1ffc4b65be5e099b2088c6e6a308d69e1ad73
Diffstat (limited to 'db/builder.h')
-rw-r--r--db/builder.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/db/builder.h b/db/builder.h
new file mode 100644
index 0000000000..62431fcf44
--- /dev/null
+++ b/db/builder.h
@@ -0,0 +1,34 @@
+// 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.
+
+#ifndef STORAGE_LEVELDB_DB_BUILDER_H_
+#define STORAGE_LEVELDB_DB_BUILDER_H_
+
+#include "leveldb/status.h"
+
+namespace leveldb {
+
+struct Options;
+struct FileMetaData;
+
+class Env;
+class Iterator;
+class TableCache;
+class VersionEdit;
+
+// Build a Table file from the contents of *iter. The generated file
+// will be named according to meta->number. On success, the rest of
+// *meta will be filled with metadata about the generated table.
+// If no data is present in *iter, meta->file_size will be set to
+// zero, and no Table file will be produced.
+extern Status BuildTable(const std::string& dbname,
+ Env* env,
+ const Options& options,
+ TableCache* table_cache,
+ Iterator* iter,
+ FileMetaData* meta);
+
+} // namespace leveldb
+
+#endif // STORAGE_LEVELDB_DB_BUILDER_H_