Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion aerospike_helpers/operations/bitwise_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@
"""
import aerospike

_OP_BIT_GET = aerospike.OP_BIT_GET

BIN_KEY = "bin"
BYTE_SIZE_KEY = "byte_size"
BYTE_OFFSET_KEY = "byte_offset"
Expand Down Expand Up @@ -354,7 +356,7 @@ def bit_get(bin_name: str, bit_offset, bit_size):
A dictionary usable in :meth:`~aerospike.Client.operate` or :meth:`~aerospike.Client.operate_ordered`. The
format of the dictionary should be considered an internal detail, and subject to change.
"""
return {OP_KEY: aerospike.OP_BIT_GET, BIN_KEY: bin_name, BIT_OFFSET_KEY: bit_offset, BIT_SIZE_KEY: bit_size}
return {OP_KEY: _OP_BIT_GET, BIN_KEY: bin_name, BIT_OFFSET_KEY: bit_offset, BIT_SIZE_KEY: bit_size}


def bit_get_int(bin_name: str, bit_offset, bit_size, sign):
Expand Down
Loading