aerospike_helpers — Aerospike Helper Package for bin operations (list, map, bit, etc.), and metrics
This package contains:
Helpers to be used by the operate and operate_ordered methods for bin operations. (list, map, bitwise, etc.)
Classes for metrics callbacks.
The HyperLogLog data type
- class aerospike_helpers.HyperLogLog(o)
Bases:
bytesRepresents a HyperLogLog value. This can be returned from or sent to the server.
from aerospike_helpers.operations import hll_operations import aerospike client = aerospike.client({'hosts': [('localhost', 3000)]}) BIN_NAME="hll" ops = [ hll_operations.hll_init(BIN_NAME, index_bit_count=4, mh_bit_count=4) ] keyTuple = ("test", "demo", 1) client.operate(keyTuple, ops) _, _, bins = client.get(keyTuple) print(bins[BIN_NAME]) client.put(keyTuple, bins) _, _, bins = client.get(keyTuple) print(bins[BIN_NAME])
HyperLogLog(...) HyperLogLog(...)
- class aerospike_helpers.string_helpers.NumericType(*values)
Bases:
IntEnumNumeric type filter for
is_numeric().- ANY = 0
Match either an integer or a floating-point number.
- FLOAT = 2
Match only floating-point numbers.
- INT = 1
Match only integers.
- class aerospike_helpers.string_helpers.RegexFlags(*values)
Bases:
IntEnumRegex flags for string regex operations. Use bitwise OR to combine flags.
- CASE_INSENSITIVE = 1
Case insensitive matching.
- DEFAULT = 0
Default. No flags set.
- DOTALL = 4
The dot metacharacter matches line terminators.
- GLOBAL = 16
Replace all matches. Only applicable to
regex_replace().
- MULTILINE = 2
Treat input as a multi-line string. The
^and$metacharacters match the start and end of any line, not just the start and end of the input.
- UNIX_LINES = 8
Treat only
\nas a line terminator.
- class aerospike_helpers.string_helpers.StringPolicy(write_flags: WriteFlags)
Bases:
objectString operation policy.
- class aerospike_helpers.string_helpers.WriteFlags(*values)
Bases:
IntEnumString operation policy write bit flags. Use bitwise OR to combine flags.
- DEFAULT = 0
Default. Allow create or update.
- NO_FAIL = 4
Do not raise an error if a modify operation cannot be applied because the target bin does not exist. The record is left unchanged.
Subpackages
- aerospike_helpers.operations package
- aerospike_helpers.operations.operations module
- aerospike_helpers.operations.list_operations module
list_append()list_append_items()list_clear()list_create()list_get()list_get_by_index()list_get_by_index_range()list_get_by_rank()list_get_by_rank_range()list_get_by_value()list_get_by_value_list()list_get_by_value_range()list_get_by_value_rank_range_relative()list_get_range()list_increment()list_insert()list_insert_items()list_pop()list_pop_range()list_remove()list_remove_by_index()list_remove_by_index_range()list_remove_by_rank()list_remove_by_rank_range()list_remove_by_value()list_remove_by_value_list()list_remove_by_value_range()list_remove_by_value_rank_range_relative()list_remove_range()list_set()list_set_order()list_size()list_sort()list_trim()
- aerospike_helpers.operations.map_operations module
map_clear()map_create()map_decrement()map_get_by_index()map_get_by_index_range()map_get_by_key()map_get_by_key_index_range_relative()map_get_by_key_list()map_get_by_key_range()map_get_by_rank()map_get_by_rank_range()map_get_by_value()map_get_by_value_list()map_get_by_value_range()map_get_by_value_rank_range_relative()map_increment()map_put()map_put_items()map_remove_by_index()map_remove_by_index_range()map_remove_by_key()map_remove_by_key_index_range_relative()map_remove_by_key_list()map_remove_by_key_range()map_remove_by_rank()map_remove_by_rank_range()map_remove_by_value()map_remove_by_value_list()map_remove_by_value_range()map_remove_by_value_rank_range_relative()map_set_policy()map_size()
- aerospike_helpers.operations.bit_operations module
- aerospike_helpers.operations.hll_operations module
- aerospike_helpers.operations.string_operations module
strlen()substr()char_at()find()contains()starts_with()ends_with()to_integer()to_double()byte_length()is_numeric()is_upper()is_lower()to_blob()split()base64_decode()regex_compare()insert()overwrite()concat()concat_list()snip()replace()replace_all()upper()lower()casefold()normalize_nfc()trim_start()trim_end()trim()pad_start()pad_end()repeat()regex_replace()to_string()
- aerospike_helpers.operations.expression_operations module
- aerospike_helpers.expressions package
- Overview
- Filter Behavior
- Terminology
- Expression Type Aliases
- aerospike_helpers.expressions.base module
AndBinExistsBinTypeBlobBinBoolBinCmpGeoCmpRegexCondDefDeviceSizeDigestModEqExclusiveFloatBinGEGTGeoBinHLLBinIntBinIsTombstoneKeyBlobKeyExistsKeyIntKeyStrLELTLastUpdateTimeLetListBinLoopVarLoopVarBlobLoopVarBoolLoopVarFloatLoopVarGeoJsonLoopVarHLLLoopVarIntLoopVarListLoopVarMapLoopVarNilLoopVarStrMapBinMemorySizeModifyByPathNENotOrRecordSizeResultRemoveSelectByPathSetNameSinceUpdateTimeStrBinTTLUnknownValVarVoidTime_Key
- aerospike_helpers.expressions.list module
InListListAppendListAppendItemsListClearListGetByIndexListGetByIndexRangeListGetByIndexRangeToEndListGetByRankListGetByRankRangeListGetByRankRangeToEndListGetByValueListGetByValueListListGetByValueRangeListGetByValueRelRankRangeListGetByValueRelRankRangeToEndListIncrementListInsertListInsertItemsListRemoveByIndexListRemoveByIndexRangeListRemoveByIndexRangeToEndListRemoveByRankListRemoveByRankRangeListRemoveByRankRangeToEndListRemoveByValueListRemoveByValueListListRemoveByValueRangeListRemoveByValueRelRankRangeListRemoveByValueRelRankToEndListSetListSizeListSort
- aerospike_helpers.expressions.map module
MapClearMapGetByIndexMapGetByIndexRangeMapGetByIndexRangeToEndMapGetByKeyMapGetByKeyListMapGetByKeyRangeMapGetByKeyRelIndexRangeMapGetByKeyRelIndexRangeToEndMapGetByRankMapGetByRankRangeMapGetByRankRangeToEndMapGetByValueMapGetByValueListMapGetByValueRangeMapGetByValueRelRankRangeMapGetByValueRelRankRangeToEndMapGetKeysMapGetValuesMapIncrementMapPutMapPutItemsMapRemoveByIndexMapRemoveByIndexRangeMapRemoveByIndexRangeToEndMapRemoveByKeyMapRemoveByKeyListMapRemoveByKeyRangeMapRemoveByKeyRelIndexRangeMapRemoveByKeyRelIndexRangeToEndMapRemoveByRankMapRemoveByRankRangeMapRemoveByRankRangeToEndMapRemoveByValueMapRemoveByValueListMapRemoveByValueRangeMapRemoveByValueRelRankRangeMapRemoveByValueRelRankRangeToEndMapSize
- aerospike_helpers.expressions.bit module
- aerospike_helpers.expressions.hll module
- aerospike_helpers.expressions.arithmetic module
- aerospike_helpers.expressions.bitwise_operators module
- aerospike_helpers.expressions.string module
Base64DecodeByteLengthCaseFoldCharAtConcatConcatListContainsEndsWithFindInsertIsLowerIsNumericIsUpperLowerNormalizeNFCOverwritePadEndPadStartRegexCompareRegexReplaceRepeatReplaceReplaceAllSnipSplitStartsWithStrLenSubStrToBlobToDoubleToIntegerToStringTrimTrimEndTrimStartUpper
- aerospike_helpers.expressions.resources module
- aerospike_helpers.cdt_ctx module
- Path Expressions Contexts
_cdt_ctxcdt_ctx_all_children()cdt_ctx_all_children_with_filter()cdt_ctx_and_filter()cdt_ctx_list_index()cdt_ctx_list_index_create()cdt_ctx_list_rank()cdt_ctx_list_value()cdt_ctx_map_index()cdt_ctx_map_key()cdt_ctx_map_key_create()cdt_ctx_map_keys_in()cdt_ctx_map_rank()cdt_ctx_map_value()index_datatype_string()index_type_string()
- aerospike_helpers.batch package
- aerospike_helpers.metrics package
ClusterClusterStatsConnectionStatsMetricsListenersMetricsPolicyNamespaceMetricsNamespaceMetrics.nsNamespaceMetrics.bytes_inNamespaceMetrics.bytes_outNamespaceMetrics.error_countNamespaceMetrics.timeout_countNamespaceMetrics.key_busy_countNamespaceMetrics.conn_latencyNamespaceMetrics.write_latencyNamespaceMetrics.read_latencyNamespaceMetrics.batch_latencyNamespaceMetrics.query_latencyNamespaceMetrics.__weakref__
NodeNodeStats