Remove TotalOrderPlainTableFactory. It was also removed in rocksdb.

This commit is contained in:
hofmockel 2014-08-22 19:15:46 +02:00
parent e0e83063f1
commit 13518d2680
4 changed files with 2 additions and 38 deletions

View file

@ -930,27 +930,6 @@ https://github.com/facebook/rocksdb/wiki/A-Tutorial-of-RocksDB-SST-formats
Inside each prefix, need to build one index record for how Inside each prefix, need to build one index record for how
many keys for binary search inside each hash bucket. many keys for binary search inside each hash bucket.
.. py:class:: rocksdb.TotalOrderPlainTableFactory
This factory of plain table ignores Options.prefix_extractor and assumes no
hashable prefix available to the key structure. Lookup will be based on
binary search index only. Total order seek() can be issued.
.. py:method:: __init__(user_key_len=0, bloom_bits_per_key=0, index_sparseness=16)
:param int user_key_len:
Plain table has optimization for fix-sized keys, which can be
specified via user_key_len.
Alternatively, you can pass `0` if your keys have variable lengths.
:param int bloom_bits_per_key:
The number of bits used for bloom filer per key.
You may disable it by passing a zero.
:param int index_sparseness:
Need to build one index record for how many keys for binary search.
.. _memtable_factories_label: .. _memtable_factories_label:
MemtableFactories MemtableFactories

View file

@ -320,10 +320,10 @@ For initial bulk loads the Vector-MemtableFactory makes sense. ::
As noted here :ref:`table_factories_label`, it is also possible to change the As noted here :ref:`table_factories_label`, it is also possible to change the
representation of the final data files. representation of the final data files.
Here is an example how to use one of the 'PlainTables'. :: Here is an example how to use a 'PlainTable'. ::
opts = rocksdb.Options() opts = rocksdb.Options()
opts.table_factory = rocksdb.TotalOrderPlainTableFactory() opts.table_factory = rocksdb.PlainTableFactory()
opts.create_if_missing = True opts.create_if_missing = True
db = rocksdb.DB("test.db", opts) db = rocksdb.DB("test.db", opts)

View file

@ -578,20 +578,6 @@ cdef class PlainTableFactory(PyTableFactory):
bloom_bits_per_prefix, bloom_bits_per_prefix,
hash_table_ratio, hash_table_ratio,
index_sparseness)) index_sparseness))
cdef class TotalOrderPlainTableFactory(PyTableFactory):
def __init__(
self,
user_key_len=0,
bloom_bits_per_key=0,
index_sparseness=16):
self.factory.reset(
table_factory.NewTotalOrderPlainTableFactory(
user_key_len,
bloom_bits_per_key,
index_sparseness))
############################################# #############################################
### Here are the MemtableFactories ### Here are the MemtableFactories

View file

@ -6,4 +6,3 @@ cdef extern from "rocksdb/table.h" namespace "rocksdb":
cdef TableFactory* NewBlockBasedTableFactory() cdef TableFactory* NewBlockBasedTableFactory()
cdef TableFactory* NewPlainTableFactory(uint32_t, int, double, size_t) cdef TableFactory* NewPlainTableFactory(uint32_t, int, double, size_t)
cdef TableFactory* NewTotalOrderPlainTableFactory(uint32_t, int, size_t)