小组成员: 曹可心-10223903406 朴祉燕-10224602413
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

34 řádky
1.1 KiB

  1. // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file. See the AUTHORS file for names of contributors.
  4. #ifndef STORAGE_LEVELDB_DB_BUILDER_H_
  5. #define STORAGE_LEVELDB_DB_BUILDER_H_
  6. #include "leveldb/status.h"
  7. namespace leveldb {
  8. struct Options;
  9. struct FileMetaData;
  10. class Env;
  11. class Iterator;
  12. class TableCache;
  13. class VersionEdit;
  14. // Build a Table file from the contents of *iter. The generated file
  15. // will be named according to meta->number. On success, the rest of
  16. // *meta will be filled with metadata about the generated table.
  17. // If no data is present in *iter, meta->file_size will be set to
  18. // zero, and no Table file will be produced.
  19. extern Status BuildTable(const std::string& dbname,
  20. Env* env,
  21. const Options& options,
  22. TableCache* table_cache,
  23. Iterator* iter,
  24. FileMetaData* meta);
  25. } // namespace leveldb
  26. #endif // STORAGE_LEVELDB_DB_BUILDER_H_