// 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_INCLUDE_OPTIONS_H_ #define STORAGE_LEVELDB_INCLUDE_OPTIONS_H_ #include <cstddef> #include "leveldb/export.h" namespace leveldb { class Cache; class Comparator; class Env; class FilterPolicy; class Logger; class Snapshot; // DB contents are stored in a set of blocks, each of which holds a // sequence of key,value pairs. Each block may be compressed before // being stored in a file. The following enum describes which // compression method (if any) is used to compress a block. enum CompressionType { … }; // Options to control the behavior of a database (passed to DB::Open) struct LEVELDB_EXPORT Options { … }; // Options that control read operations struct LEVELDB_EXPORT ReadOptions { … }; // Options that control write operations struct LEVELDB_EXPORT WriteOptions { … }; } // namespace leveldb #endif // STORAGE_LEVELDB_INCLUDE_OPTIONS_H_