Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python Rocksdb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
Python Rocksdb
Commits
bec21991
Unverified
Commit
bec21991
authored
3 years ago
by
Jan Segre
Browse files
Options
Downloads
Patches
Plain Diff
Remove `hash_index_allow_collision` to work with rocksdb-7.3
parent
2d64988e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/api/options.rst
+1
-7
1 addition, 7 deletions
docs/api/options.rst
rocksdb/_rocksdb.pyx
+0
-6
0 additions, 6 deletions
rocksdb/_rocksdb.pyx
rocksdb/table_factory.pxd
+0
-1
0 additions, 1 deletion
rocksdb/table_factory.pxd
with
1 addition
and
14 deletions
docs/api/options.rst
+
1
−
7
View file @
bec21991
...
...
@@ -909,7 +909,7 @@ https://github.com/facebook/rocksdb/wiki/A-Tutorial-of-RocksDB-SST-formats
Wraps BlockBasedTableFactory of RocksDB.
.. py:method:: __init__(index_type='binary_search',
hash_index_allow_collision=True,
checksum='crc32', block_cache, block_cache_compressed, filter_policy=None, no_block_cache=False, block_size=None, block_size_deviation=None, block_restart_interval=None, whole_key_filtering=None, enable_index_compression=None, cache_index_and_filter_blocks=None, format_version=None)
.. py:method:: __init__(index_type='binary_search', checksum='crc32', block_cache, block_cache_compressed, filter_policy=None, no_block_cache=False, block_size=None, block_size_deviation=None, block_restart_interval=None, whole_key_filtering=None, enable_index_compression=None, cache_index_and_filter_blocks=None, format_version=None)
:param string index_type:
* ``binary_search`` a space efficient index block that is optimized
...
...
@@ -917,12 +917,6 @@ https://github.com/facebook/rocksdb/wiki/A-Tutorial-of-RocksDB-SST-formats
* ``hash_search`` the hash index. If enabled, will do hash lookup
when `Options.prefix_extractor` is provided.
:param bool hash_index_allow_collision:
Influence the behavior when ``hash_search`` is used.
If ``False``, stores a precise prefix to block range mapping.
If ``True``, does not store prefix and allows prefix hash collision
(less memory consumption)
:param string checksum:
Use the specified checksum type. Newly created table files will be
protected with this checksum type. Old table files will still be readable,
...
...
This diff is collapsed.
Click to expand it.
rocksdb/_rocksdb.pyx
+
0
−
6
View file @
bec21991
...
...
@@ -466,7 +466,6 @@ cdef class PyTableFactory(object):
cdef
class
BlockBasedTableFactory
(
PyTableFactory
):
def
__init__
(
self
,
index_type
=
'
binary_search
'
,
py_bool
hash_index_allow_collision
=
True
,
checksum
=
'
crc32
'
,
PyCache
block_cache
=
None
,
PyCache
block_cache_compressed
=
None
,
...
...
@@ -488,11 +487,6 @@ cdef class BlockBasedTableFactory(PyTableFactory):
else
:
raise
ValueError
(
"
Unknown index_type: %s
"
%
index_type
)
if
hash_index_allow_collision
:
table_options
.
hash_index_allow_collision
=
True
else
:
table_options
.
hash_index_allow_collision
=
False
if
checksum
==
'
crc32
'
:
table_options
.
checksum
=
table_factory
.
kCRC32c
elif
checksum
==
'
xxhash
'
:
...
...
This diff is collapsed.
Click to expand it.
rocksdb/table_factory.pxd
+
0
−
1
View file @
bec21991
...
...
@@ -19,7 +19,6 @@ cdef extern from "rocksdb/table.h" namespace "rocksdb":
cdef
cppclass
BlockBasedTableOptions
:
BlockBasedTableOptions
()
BlockBasedTableIndexType
index_type
cpp_bool
hash_index_allow_collision
ChecksumType
checksum
cpp_bool
no_block_cache
size_t
block_size
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment