1leveldb: A key-value store 2Authors: Sanjay Ghemawat (sanjay@google.com) and Jeff Dean (jeff@google.com) 3 4The code under this directory implements a system for maintaining a 5persistent key/value store. 6 7See doc/index.html for more explanation. 8See doc/impl.html for a brief overview of the implementation. 9 10The public interface is in include/*.h. Callers should not include or 11rely on the details of any other header files in this package. Those 12internal APIs may be changed without warning. 13 14Guide to header files: 15 16include/db.h 17 Main interface to the DB: Start here 18 19include/options.h 20 Control over the behavior of an entire database, and also 21 control over the behavior of individual reads and writes. 22 23include/comparator.h 24 Abstraction for user-specified comparison function. If you want 25 just bytewise comparison of keys, you can use the default comparator, 26 but clients can write their own comparator implementations if they 27 want custom ordering (e.g. to handle different character 28 encodings, etc.) 29 30include/iterator.h 31 Interface for iterating over data. You can get an iterator 32 from a DB object. 33 34include/write_batch.h 35 Interface for atomically applying multiple updates to a database. 36 37include/slice.h 38 A simple module for maintaining a pointer and a length into some 39 other byte array. 40 41include/status.h 42 Status is returned from many of the public interfaces and is used 43 to report success and various kinds of errors. 44 45include/env.h 46 Abstraction of the OS environment. A posix implementation of 47 this interface is in util/env_posix.cc 48 49include/table.h 50include/table_builder.h 51 Lower-level modules that most clients probably won't use directly 52