2012-11-30 07:39:08 +01:00
|
|
|
rocksdb: A persistent key-value store for flash storage
|
2013-07-30 17:30:13 +02:00
|
|
|
Authors: * The Facebook Database Engineering Team
|
2013-09-13 04:00:28 +02:00
|
|
|
* Build on earlier work on leveldb by Sanjay Ghemawat
|
2013-07-30 17:30:13 +02:00
|
|
|
(sanjay@google.com) and Jeff Dean (jeff@google.com)
|
2012-11-30 07:39:08 +01:00
|
|
|
|
2013-03-13 21:50:26 +01:00
|
|
|
This code is a library that forms the core building block for a fast
|
2012-11-30 07:39:08 +01:00
|
|
|
key value server, especially suited for storing data on flash drives.
|
|
|
|
It has an Log-Stuctured-Merge-Database (LSM) design with flexible tradeoffs
|
|
|
|
between Write-Amplification-Factor(WAF), Read-Amplification-Factor (RAF)
|
|
|
|
and Space-Amplification-Factor(SAF). It has multi-threaded compactions,
|
|
|
|
making it specially suitable for storing multiple terabytes of data in a
|
|
|
|
single database.
|
|
|
|
|
|
|
|
The core of this code has been derived from open-source leveldb.
|
|
|
|
|
2011-03-18 23:37:00 +01:00
|
|
|
The code under this directory implements a system for maintaining a
|
2011-04-21 00:48:11 +02:00
|
|
|
persistent key/value store.
|
2011-03-18 23:37:00 +01:00
|
|
|
|
|
|
|
See doc/index.html for more explanation.
|
2011-04-21 00:48:11 +02:00
|
|
|
See doc/impl.html for a brief overview of the implementation.
|
2011-03-18 23:37:00 +01:00
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
The public interface is in include/rocksdb/*.h. Callers should not include or
|
2011-03-18 23:37:00 +01:00
|
|
|
rely on the details of any other header files in this package. Those
|
|
|
|
internal APIs may be changed without warning.
|
|
|
|
|
|
|
|
Guide to header files:
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/db.h
|
2011-03-18 23:37:00 +01:00
|
|
|
Main interface to the DB: Start here
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/options.h
|
2011-03-18 23:37:00 +01:00
|
|
|
Control over the behavior of an entire database, and also
|
|
|
|
control over the behavior of individual reads and writes.
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/comparator.h
|
2011-03-18 23:37:00 +01:00
|
|
|
Abstraction for user-specified comparison function. If you want
|
|
|
|
just bytewise comparison of keys, you can use the default comparator,
|
|
|
|
but clients can write their own comparator implementations if they
|
|
|
|
want custom ordering (e.g. to handle different character
|
|
|
|
encodings, etc.)
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/iterator.h
|
2011-03-18 23:37:00 +01:00
|
|
|
Interface for iterating over data. You can get an iterator
|
|
|
|
from a DB object.
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/write_batch.h
|
2011-03-18 23:37:00 +01:00
|
|
|
Interface for atomically applying multiple updates to a database.
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/slice.h
|
2011-03-18 23:37:00 +01:00
|
|
|
A simple module for maintaining a pointer and a length into some
|
|
|
|
other byte array.
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/status.h
|
2011-03-18 23:37:00 +01:00
|
|
|
Status is returned from many of the public interfaces and is used
|
|
|
|
to report success and various kinds of errors.
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/env.h
|
2011-03-18 23:37:00 +01:00
|
|
|
Abstraction of the OS environment. A posix implementation of
|
|
|
|
this interface is in util/env_posix.cc
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/table_builder.h
|
2011-03-18 23:37:00 +01:00
|
|
|
Lower-level modules that most clients probably won't use directly
|
2013-07-30 17:30:13 +02:00
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/cache.h
|
2013-07-30 17:30:13 +02:00
|
|
|
An API for the block cache.
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/compaction_filter.h
|
2013-07-30 17:30:13 +02:00
|
|
|
An API for a application filter invoked on every compaction.
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/filter_policy.h
|
2013-07-30 17:30:13 +02:00
|
|
|
An API for configuring a bloom filter.
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/memtablerep.h
|
2013-07-30 17:30:13 +02:00
|
|
|
An API for implementing a memtable.
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/statistics.h
|
2013-07-30 17:30:13 +02:00
|
|
|
An API to retrieve various database statistics.
|
|
|
|
|
2013-09-13 04:00:28 +02:00
|
|
|
include/rocksdb/transaction_log.h
|
2013-07-30 17:30:13 +02:00
|
|
|
An API to retrieve transaction logs from a database.
|
|
|
|
|
|
|
|
|