rocksdb/examples
Siying Dong 21696ba502 Replace dynamic_cast<>
Summary:
Replace dynamic_cast<> so that users can choose to build with RTTI off, so that they can save several bytes per object, and get tiny more memory available.
Some nontrivial changes:
1. Add Comparator::GetRootComparator() to get around the internal comparator hack
2. Add the two experiemental functions to DB
3. Add TableFactory::GetOptionString() to avoid unnecessary casting to get the option string
4. Since 3 is done, move the parsing option functions for table factory to table factory files too, to be symmetric.
Closes https://github.com/facebook/rocksdb/pull/2645

Differential Revision: D5502723

Pulled By: siying

fbshipit-source-id: fd13cec5601cf68a554d87bfcf056f2ffa5fbf7c
2017-07-28 16:27:16 -07:00
..
.gitignore Update .gitignore file in examples 2017-03-23 11:24:14 -07:00
c_simple_example.c Change RocksDB License 2017-07-15 16:11:23 -07:00
column_families_example.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
compact_files_example.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
compaction_filter_example.cc Replace dynamic_cast<> 2017-07-28 16:27:16 -07:00
Makefile Replace dynamic_cast<> 2017-07-28 16:27:16 -07:00
optimistic_transaction_example.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
options_file_example.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
README.md Improve examples/README.md 2015-12-16 16:27:37 +01:00
rocksdb_option_file_example.ini Remove skip_table_builder_flush and default it to true 2017-03-02 16:54:10 -08:00
simple_example.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
transaction_example.cc Change RocksDB License 2017-07-15 16:11:23 -07:00

  1. Compile RocksDB first by executing make static_lib in parent dir
  2. Compile all examples: cd examples/; make all