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.
Files changed (56) hide show
  1. {rdbpython-0.2.2/src/rdbpython.egg-info → rdbpython-0.2.3}/PKG-INFO +1 -1
  2. {rdbpython-0.2.2 → rdbpython-0.2.3}/pyproject.toml +1 -1
  3. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/lib_rocksdb.pyx +41 -1
  4. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/table_factory.pxd +9 -0
  5. {rdbpython-0.2.2 → rdbpython-0.2.3/src/rdbpython.egg-info}/PKG-INFO +1 -1
  6. {rdbpython-0.2.2 → rdbpython-0.2.3}/LICENSE.md +0 -0
  7. {rdbpython-0.2.2 → rdbpython-0.2.3}/MANIFEST.in +0 -0
  8. {rdbpython-0.2.2 → rdbpython-0.2.3}/README.md +0 -0
  9. {rdbpython-0.2.2 → rdbpython-0.2.3}/scripts/build-rocksdb-linux.sh +0 -0
  10. {rdbpython-0.2.2 → rdbpython-0.2.3}/scripts/build-rocksdb-macos.sh +0 -0
  11. {rdbpython-0.2.2 → rdbpython-0.2.3}/scripts/rocksdb-cstdint.patch +0 -0
  12. {rdbpython-0.2.2 → rdbpython-0.2.3}/setup.cfg +0 -0
  13. {rdbpython-0.2.2 → rdbpython-0.2.3}/setup.py +0 -0
  14. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/__init__.py +0 -0
  15. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/backup.pxd +0 -0
  16. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/cache.pxd +0 -0
  17. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/comparator.pxd +0 -0
  18. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/db.pxd +0 -0
  19. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/env.pxd +0 -0
  20. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/errors.py +0 -0
  21. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/filter_policy.pxd +0 -0
  22. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/comparator_wrapper.hpp +0 -0
  23. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/filter_policy_wrapper.hpp +0 -0
  24. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/memtable_factories.hpp +0 -0
  25. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/merge_operator_wrapper.hpp +0 -0
  26. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/slice_transform_wrapper.hpp +0 -0
  27. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/utils.hpp +0 -0
  28. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/include/rdb_include/write_batch_iter_helper.hpp +0 -0
  29. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/interfaces.py +0 -0
  30. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/iterator.pxd +0 -0
  31. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/lib_rocksdb.pxd +0 -0
  32. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/lib_rocksdb.pyi +0 -0
  33. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/lib_utils.py +0 -0
  34. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/logger.pxd +0 -0
  35. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/memtablerep.pxd +0 -0
  36. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/merge_operator.pxd +0 -0
  37. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/merge_operators.py +0 -0
  38. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/options.pxd +0 -0
  39. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/slice_.pxd +0 -0
  40. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/slice_transform.pxd +0 -0
  41. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/snapshot.pxd +0 -0
  42. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/status.pxd +0 -0
  43. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/std_memory.pxd +0 -0
  44. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/transaction.pxd +0 -0
  45. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpy/universal_compaction.pxd +0 -0
  46. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpython.egg-info/SOURCES.txt +0 -0
  47. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpython.egg-info/dependency_links.txt +0 -0
  48. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpython.egg-info/not-zip-safe +0 -0
  49. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpython.egg-info/requires.txt +0 -0
  50. {rdbpython-0.2.2 → rdbpython-0.2.3}/src/rdbpython.egg-info/top_level.txt +0 -0
  51. {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/conftest.py +0 -0
  52. {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/functional/__init__.py +0 -0
  53. {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/functional/test_db.py +0 -0
  54. {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/functional/test_memtable.py +0 -0
  55. {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/functional/test_options.py +0 -0
  56. {rdbpython-0.2.2 → rdbpython-0.2.3}/tests/functional/test_transaction.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rdbpython
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Python bindings for RocksDB with Cython
5
5
  Author-email: Gor Arakelyan <gorarkln@gmail.com>
6
6
  Maintainer-email: Gor Arakelyan <gorarkln@gmail.com>
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
10
10
  # ============================================================================
11
11
  [project]
12
12
  name = "rdbpython"
13
- version = "0.2.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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rdbpython
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Python bindings for RocksDB with Cython
5
5
  Author-email: Gor Arakelyan <gorarkln@gmail.com>
6
6
  Maintainer-email: Gor Arakelyan <gorarkln@gmail.com>
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