+
     hS  c                   s    ^ RI Ht ^RIHtHt ^RI5 ^RIHtHtH	t	H
t
Ht  ! R R4      t ! R R]]4      t ! R	 R
]]4      t ! R R]]4      t ! R R]]4      t ! R R]]4      tR# )i    )bool_ok)get_protocol_versionparse_to_list)Z*)BFInfoCFInfoCMSInfoTDigestInfoTopKInfoc                   s   a  ] tR t^t o Rt]R 4       t]R 4       t]R 4       t]R 4       t	]R 4       t
]R 4       t]R 4       t]R	 4       t]R
 4       t]R 4       t]R 4       tRtV tR# )AbstractBloomz
The client allows to interact with RedisBloom and use all of
it's functionality.

- BF for Bloom Filter
- CF for Cuckoo Filter
- CMS for Count-Min Sketch
- TOPK for TopK Data Structure
- TDIGEST for estimate rank statistics
c                s:    V P                  R.4       W,          p R# )zAppend ITEMS to params.ZITEMSNZextend)paramsitems   &&?/usr/lib/python3.14/site-packages/redis/commands/bf/__init__.pyappend_itemsZAbstractBloom.append_items   s     	wi     c                8    Ve   V P                  RV.4       R# R# )zAppend ERROR to params.NZERRORr	   )r
   Zerrorr   r   append_errorZAbstractBloom.append_error   s      MM7E*+ r   c                r   )zAppend CAPACITY to params.NZCAPACITYr	   )r
   Zcapacityr   r   append_capacityZAbstractBloom.append_capacity    s      MM:x01  r   c                r   )zAppend EXPANSION to params.NZ	EXPANSIONr	   )r
   Z	expansionr   r   append_expansionZAbstractBloom.append_expansion&   s       MM;	23 !r   c                6    Ve   V P                  R.4       R# R# )z Append NONSCALING tag to params.NZ
NONSCALINGr	   )r
   ZnoScaler   r   append_no_scaleZAbstractBloom.append_no_scale,   s     MM<.) r   c                s\    \        V4      ^ 8  d   V P                  R4       W,          p R# R# )zAppend WEIGHTS to params.ZWEIGHTSN)lenappend)r
   weightsr   r   append_weightsZAbstractBloom.append_weights2   s)     w<!MM)$F r   c                r   )zAppend NOCREATE tag to params.NZNOCREATEr	   )r
   ZnoCreater   r   append_no_createZAbstractBloom.append_no_create9   s     MM:,'  r   c                    \        \        V4      4       F1  pV P                  W,          4       V P                  W#,          4       K3  	  R# )z/Append pairs of items and increments to params.NZranger   r   )r
   r   Z
incrementsi   &&& r   append_items_and_incrementsZ)AbstractBloom.append_items_and_increments?   s3     s5z"AMM%(#MM*-( #r   c                r   )z,Append pairs of items and weights to params.Nr   )r
   r   r   r   r   r   append_values_and_weightsZ'AbstractBloom.append_values_and_weightsF   s3     s5z"AMM%(#MM'*% #r   c                r   )zAppend MAXITERATIONS to params.NZMAXITERATIONSr	   )r
   Zmax_iterationsr   r   append_max_iterationsZ#AbstractBloom.append_max_iterationsM   s      %MM?N;< &r   c                r   )zAppend BUCKETSIZE to params.NZ
BUCKETSIZEr	   )r
   Zbucket_sizer   r   append_bucket_sizeZ AbstractBloom.append_bucket_sizeS   s      "MM<56 #r    N)__name__
__module____qualname____firstlineno__Z__doc__Zstaticmethodr   r   r   r   r   r   r   r   r    r!   r"   __static_attributes____classdictcell__Z__classdict__   @r   r   r      s     	  
 , ,
 2 2
 4 4
 * *
   ( (
 ) ) & & = =
 7 7r   r   c                   s&   a  ] tR t^Zt o R tRtV tR# )CMSBloomc                s   \         \        \        \        \        \        /p\        \
        /p/ pWn        \        V n        VP                  V n	        \        V P                  4      R9   d   VP                  V4       MVP                  V4       VP                  4        F   w  rgV P                  P                  Wg4       K"  	  R# zCreate a new RedisBloom client.N)Z3i   )ZCMS_INITBYDIMr    ZCMS_INITBYPROBZ	CMS_MERGEZCMS_INFOr   clientCMSCommandscommandmixinexecute_commandr   updater   set_response_callbackZselfr.   ZkwargsZ_MODULE_CALLBACKSZ_RESP2_MODULE_CALLBACKSZ_RESP3_MODULE_CALLBACKSZkZv   &&,     r   __init__ZCMSBloom.__init__[   s     7G w
 g#
 #%'%55,8$$%<=$$%<=%++-DAKK--a3 .r   r.   r0   r1   Nr$   r%   r&   r'   r6   r(   r)   r*   r+   r   r,   r,   Z   s     4 4r   r,   c                   s&   a  ] tR t^xt o R tRtV tR# )	TOPKBloomc                s   \         \        /p\        \        \        \        \
        \        \        \        /p/ pWn        \        V n
        VP                  V n        \        V P                  4      R9   d   VP                  V4       MVP                  V4       VP                  4        F   w  rgV P                  P                  Wg4       K"  	  R# r-   )ZTOPK_RESERVEr    ZTOPK_ADDr   ZTOPK_INCRBYZ	TOPK_INFOr   Z	TOPK_LISTr.   TOPKCommandsr0   r1   r   r2   r   r3   r4   r5   r   r6   ZTOPKBloom.__init__y   s     '
 mx}	#
 #%(%55,8$$%<=$$%<=%++-DAKK--a3 .r   r7   Nr8   r*   r+   r   r9   r9   x   s     4 4r   r9   c                   s&   a  ] tR t^t o R tRtV tR# )CFBloomc                `   \         \        /p\        \        /p/ pWn        \
        V n        VP                  V n        \        V P                  4      R9   d   VP                  V4       MVP                  V4       VP                  4        F   w  rgV P                  P                  Wg4       K"  	  R# r-   )Z
CF_RESERVEr    ZCF_INFOr   r.   
CFCommandsr0   r1   r   r2   r   r3   r4   r5   r   r6   ZCFBloom.__init__   s     
 V#
 #%&%55,8$$%<=$$%<=%++-DAKK--a3 .r   r7   Nr8   r*   r+   r   r;   r;      s     4 4r   r;   c                   s&   a  ] tR t^t o R tRtV tR# )TDigestBloomc                s   \         \        /p\        \        \        \        \
        \        \        \        \        \        \        \        \        \        \        \        /p/ pWn        \        V n        VP                   V n        \#        V P                  4      R9   d   VP%                  V4       MVP%                  V4       VP'                  4        F   w  rgV P                  P)                  Wg4       K"  	  R# r-   )ZTDIGEST_CREATEr    ZTDIGEST_BYRANKr   ZTDIGEST_BYREVRANKZTDIGEST_CDFZTDIGEST_INFOr   ZTDIGEST_MINZfloatZTDIGEST_MAXZTDIGEST_TRIMMED_MEANZTDIGEST_QUANTILEr.   TDigestCommandsr0   r1   r   r2   r   r3   r4   r5   r   r6   ZTDigestBloom.__init__   s     G
 M}+ %m	#
 #%+%55,8$$%<=$$%<=%++-DAKK--a3 .r   r7   Nr8   r*   r+   r   r>   r>      s      4  4r   r>   c                   s&   a  ] tR t^t o R tRtV tR# )BFBloomc                r<   r-   )Z
BF_RESERVEr    ZBF_INFOr   r.   
BFCommandsr0   r1   r   r2   r   r3   r4   r5   r   r6   ZBFBloom.__init__   s     

 V#
 #%&%55,8$$%<=$$%<=%++-DAKK--a3 .r   r7   Nr8   r*   r+   r   r@   r@      s     4 4r   r@   N)Zredis._parsers.helpersr    Zhelpersr   r   ZcommandsZinfor   r   r   r   r   r   r/   r,   r:   r9   r=   r;   r?   r>   rA   r@   r#   r   r   <module>rB      si    * 9  @ @O7 O7d4{M 4<4m 4> 4j-  4F!4?M !4H4j- 4r   