rdbpython 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rdbpython-0.2.2/src/rdbpython.egg-info → rdbpython-0.2.3}/PKG-INFO +1 -1
- {rdbpython-0.2.2 → rdbpython-0.2.3}/pyproject.toml +1 -1
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/lib_rocksdb.pyx +41 -1
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/table_factory.pxd +9 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3/src/rdbpython.egg-info}/PKG-INFO +1 -1
- {rdbpython-0.2.2 → rdbpython-0.2.3}/LICENSE.md +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/MANIFEST.in +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/README.md +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/scripts/build-rocksdb-linux.sh +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/scripts/build-rocksdb-macos.sh +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/scripts/rocksdb-cstdint.patch +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/setup.cfg +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/setup.py +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/__init__.py +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/backup.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/cache.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/comparator.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/db.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/env.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/errors.py +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/filter_policy.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/comparator_wrapper.hpp +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/filter_policy_wrapper.hpp +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/memtable_factories.hpp +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/merge_operator_wrapper.hpp +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/slice_transform_wrapper.hpp +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/utils.hpp +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/write_batch_iter_helper.hpp +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/interfaces.py +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/iterator.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/lib_rocksdb.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/lib_rocksdb.pyi +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/lib_utils.py +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/logger.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/memtablerep.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/merge_operator.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/merge_operators.py +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/options.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/slice_.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/slice_transform.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/snapshot.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/status.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/std_memory.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/transaction.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/universal_compaction.pxd +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpython.egg-info/SOURCES.txt +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpython.egg-info/dependency_links.txt +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpython.egg-info/not-zip-safe +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpython.egg-info/requires.txt +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpython.egg-info/top_level.txt +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/conftest.py +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/functional/__init__.py +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/functional/test_db.py +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/functional/test_memtable.py +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/functional/test_options.py +0 -0
- {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/functional/test_transaction.py +0 -0
|
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
|
|
|
10
10
|
# ============================================================================
|
|
11
11
|
[project]
|
|
12
12
|
name = "rdbpython"
|
|
13
|
-
version = "0.2.
|
|
13
|
+
version = "0.2.3"
|
|
14
14
|
description = "Python bindings for RocksDB with Cython"
|
|
15
15
|
readme = "README.md"
|
|
16
16
|
license = "MIT"
|
|
@@ -591,7 +591,16 @@ cdef class BlockBasedTableFactory(PyTableFactory):
|
|
|
591
591
|
block_size=None,
|
|
592
592
|
block_size_deviation=None,
|
|
593
593
|
block_restart_interval=None,
|
|
594
|
-
whole_key_filtering=None
|
|
594
|
+
whole_key_filtering=None,
|
|
595
|
+
cache_index_and_filter_blocks=None,
|
|
596
|
+
cache_index_and_filter_blocks_with_high_priority=None,
|
|
597
|
+
pin_l0_filter_and_index_blocks_in_cache=None,
|
|
598
|
+
pin_top_level_index_and_filter=None,
|
|
599
|
+
partition_filters=None,
|
|
600
|
+
metadata_block_size=None,
|
|
601
|
+
format_version=None,
|
|
602
|
+
optimize_filters_for_memory=None,
|
|
603
|
+
read_amp_bytes_per_bit=None):
|
|
595
604
|
|
|
596
605
|
cdef table_factory.BlockBasedTableOptions table_options
|
|
597
606
|
|
|
@@ -635,6 +644,37 @@ cdef class BlockBasedTableFactory(PyTableFactory):
|
|
|
635
644
|
else:
|
|
636
645
|
table_options.whole_key_filtering = False
|
|
637
646
|
|
|
647
|
+
if cache_index_and_filter_blocks is not None:
|
|
648
|
+
table_options.cache_index_and_filter_blocks = bool(cache_index_and_filter_blocks)
|
|
649
|
+
|
|
650
|
+
if cache_index_and_filter_blocks_with_high_priority is not None:
|
|
651
|
+
table_options.cache_index_and_filter_blocks_with_high_priority = bool(
|
|
652
|
+
cache_index_and_filter_blocks_with_high_priority
|
|
653
|
+
)
|
|
654
|
+
|
|
655
|
+
if pin_l0_filter_and_index_blocks_in_cache is not None:
|
|
656
|
+
table_options.pin_l0_filter_and_index_blocks_in_cache = bool(
|
|
657
|
+
pin_l0_filter_and_index_blocks_in_cache
|
|
658
|
+
)
|
|
659
|
+
|
|
660
|
+
if pin_top_level_index_and_filter is not None:
|
|
661
|
+
table_options.pin_top_level_index_and_filter = bool(pin_top_level_index_and_filter)
|
|
662
|
+
|
|
663
|
+
if partition_filters is not None:
|
|
664
|
+
table_options.partition_filters = bool(partition_filters)
|
|
665
|
+
|
|
666
|
+
if metadata_block_size is not None:
|
|
667
|
+
table_options.metadata_block_size = metadata_block_size
|
|
668
|
+
|
|
669
|
+
if format_version is not None:
|
|
670
|
+
table_options.format_version = format_version
|
|
671
|
+
|
|
672
|
+
if optimize_filters_for_memory is not None:
|
|
673
|
+
table_options.optimize_filters_for_memory = bool(optimize_filters_for_memory)
|
|
674
|
+
|
|
675
|
+
if read_amp_bytes_per_bit is not None:
|
|
676
|
+
table_options.read_amp_bytes_per_bit = read_amp_bytes_per_bit
|
|
677
|
+
|
|
638
678
|
if block_cache is not None:
|
|
639
679
|
table_options.block_cache = block_cache.get_cache()
|
|
640
680
|
|
|
@@ -27,6 +27,15 @@ cdef extern from "rocksdb/table.h" namespace "rocksdb":
|
|
|
27
27
|
int block_size_deviation
|
|
28
28
|
int block_restart_interval
|
|
29
29
|
cpp_bool whole_key_filtering
|
|
30
|
+
cpp_bool cache_index_and_filter_blocks
|
|
31
|
+
cpp_bool cache_index_and_filter_blocks_with_high_priority
|
|
32
|
+
cpp_bool pin_l0_filter_and_index_blocks_in_cache
|
|
33
|
+
cpp_bool pin_top_level_index_and_filter
|
|
34
|
+
cpp_bool partition_filters
|
|
35
|
+
size_t metadata_block_size
|
|
36
|
+
uint32_t format_version
|
|
37
|
+
cpp_bool optimize_filters_for_memory
|
|
38
|
+
int read_amp_bytes_per_bit
|
|
30
39
|
shared_ptr[Cache] block_cache
|
|
31
40
|
shared_ptr[Cache] block_cache_compressed
|
|
32
41
|
shared_ptr[FilterPolicy] filter_policy
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/merge_operator_wrapper.hpp
RENAMED
|
File without changes
|
{rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/slice_transform_wrapper.hpp
RENAMED
|
File without changes
|
|
File without changes
|
{rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/write_batch_iter_helper.hpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|